[adegenet-forum] optimum number of PCs for optim.a.score()

Robert Fairweather osue37 at bangor.ac.uk
Fri Nov 13 18:53:42 CET 2015


Hello,
I am using the optim.a.score() function to investigate the optimum number of PCs to retain in my analysis, a function that operates on a DAPC object. To produce a DAPC object I first have to carry out a DAPC procedure on my data, which means defining the number of PCs to retain in advance. I have noticed that the number of PCs retained in the DAPC object changes the outcome of the optim.a.score function, suggesting that some optimum should be known before using the function.
For example, with the microbov data, optim.a.score(dapc(microbov, n.da=100, n.pca=50)) , as suggested in the vignette, returns an optimum number of ~22 PCs, however, increasing this to 100, 200 and 300 PCs, all explaining <100% cumulative variance, return values of 15, 27 and 59 respectively. 300 returns a series of instability warnings.
With this in mind, what is the best way to choose the number of PCs in the dapc object used in optim.a.score()? The number used in the microbov example in the vignette (50) is that explaining ~90% cumulative variance, and thus far I have been using that threshold as a guide with my own data.
Am I perhaps misunderstanding the use of the function?
Many thanks,
Robert

Robert Fairweather
Research Student
Molecular Ecology and Fisheries Genetics Laboratory
Environment Centre Wales
Bangor Unversity
LL57 2UW

Email: osue37 at bangor.ac.uk<mailto:osue37 at bangor.ac.uk>
Skype: fairweathr
Twitter: @FairweathR




Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565

Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilewch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio a defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor.

This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of Bangor University. Bangor University does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the Bangor University Finance Office.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151113/faef97a8/attachment-0001.html>


More information about the adegenet-forum mailing list