[adegenet-forum] xvalDapc and Missing data

Ryan Daniels jryan.daniels at gmail.com
Tue Jul 30 22:12:17 CEST 2013

(Windows Vista, R 3.0.0)
I've read in a genepop file with microsatellite data (diploid, 9 loci, 120
samples, 8 populations) and coverted it to genind.

I was trying to use the xvalDapc function but I received the following
error message:

Error in dudi.pca(x, nf = n.pca.max, scannf = FALSE, center = center,  :

  na entries in table

I've checked, there are "NA"s and they correspond to my samples with
missing data.
I couldn't find anything on the web on how to deal with missing data for
this function but I saw  Thibaut suggested replacing NA's with
uninformative mean values.
here: http://r.789695.n4.nabble.com/PCA-with-NA-td840762.html

 Would this solution be permissible for this function and this type of data?

Thank you in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20130730/27484729/attachment.html>

More information about the adegenet-forum mailing list