<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">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.
<o:p></o:p></p>
<p class="MsoNormal">For example, with the microbov data, <b><span style="font-family:"Courier New"">optim.a.score(dapc(microbov, n.da=100, n.pca=50))</span></b> , 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.
<o:p></o:p></p>
<p class="MsoNormal">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. <o:p></o:p></p>
<p class="MsoNormal">Am I perhaps misunderstanding the use of the function?<o:p></o:p></p>
<p class="MsoNormal">Many thanks,<o:p></o:p></p>
<p class="MsoNormal">Robert<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Robert Fairweather<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Research Student<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Molecular Ecology and Fisheries Genetics Laboratory<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Environment Centre Wales<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Bangor Unversity<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">LL57 2UW<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Email:
<a href="mailto:osue37@bangor.ac.uk">osue37@bangor.ac.uk</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Skype: fairweathr<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2E74B5;mso-fareast-language:EN-GB">Twitter: @FairweathR<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p> </p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top" style="padding:15px 0;">
<p><strong>Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565</strong></p>
<p>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.</p>
<p>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.</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>