Hello, I am trying to perform PLS on two datasets "snp" (Genotype data.Rdata file attached) and "met" (Metabolites data.Rdata file attached). I am getting the following error message even though neither of the datasets has any missing data.
load("Genotype data.Rdata") load("Metabolites data.Rdata") cvd.pls <- pls(snp, met, ncomp = 20) cvd.val <- perf(cvd.pls, validation = "Mfold", folds = 5) Error: missing data in 'X' and/or 'Y'. Use 'nipals' for dealing with NAs.
Here the confirmation that neither dataset has any missing values:
any(is.na(met))  FALSE any(is.na(snp))  FALSE
Could you help me with this?