<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Proc PLS CV after choosing factors? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691074#M33316</link>
    <description>&lt;P&gt;I'm new to running Proc PLS and I'm trying to understand if I still need to run cv &lt;U&gt;after&lt;/U&gt; choosing the number of factors for my model.&lt;/P&gt;&lt;P&gt;Here's an example of my code and what I'm doing.&amp;nbsp; Is that correct?&amp;nbsp; Thanks for your input. (note: I've purposely removed many of my x-vars from the model I'm showing below to save space)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pls data=splitplsr2 cv=random(seed=12345) cvtest varss plots=(diagnostics dmod scores ParmProfiles VIP XLoadingProfiles);
	class plat;
	model pNmeas = plat
R1Avg_412_d/ solution;
	output OUT=test1; 
	ods output VariableImportancePlot=vip;
	title 'Global Model';
run;
/* run model above and choose factors by van der Voet's test*/
/*next code to run for solutions using the designated number of factors*/
proc pls data=splitplsr2 nfac=8 varss plots=(diagnostics dmod scores ParmProfiles VIP XLoadingProfiles);
	class plat;
	model pNmeas = plat
R1Avg_412_d/ solution;
	output OUT=outfile predicted=predpNR1f press=presspNR1f yresidual=yresidpNR1f ; 
	ods output VariableImportancePlot=vip;
	title 'Final Global Model';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Oct 2020 20:25:04 GMT</pubDate>
    <dc:creator>Daisy2</dc:creator>
    <dc:date>2020-10-12T20:25:04Z</dc:date>
    <item>
      <title>Proc PLS CV after choosing factors?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691074#M33316</link>
      <description>&lt;P&gt;I'm new to running Proc PLS and I'm trying to understand if I still need to run cv &lt;U&gt;after&lt;/U&gt; choosing the number of factors for my model.&lt;/P&gt;&lt;P&gt;Here's an example of my code and what I'm doing.&amp;nbsp; Is that correct?&amp;nbsp; Thanks for your input. (note: I've purposely removed many of my x-vars from the model I'm showing below to save space)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pls data=splitplsr2 cv=random(seed=12345) cvtest varss plots=(diagnostics dmod scores ParmProfiles VIP XLoadingProfiles);
	class plat;
	model pNmeas = plat
R1Avg_412_d/ solution;
	output OUT=test1; 
	ods output VariableImportancePlot=vip;
	title 'Global Model';
run;
/* run model above and choose factors by van der Voet's test*/
/*next code to run for solutions using the designated number of factors*/
proc pls data=splitplsr2 nfac=8 varss plots=(diagnostics dmod scores ParmProfiles VIP XLoadingProfiles);
	class plat;
	model pNmeas = plat
R1Avg_412_d/ solution;
	output OUT=outfile predicted=predpNR1f press=presspNR1f yresidual=yresidpNR1f ; 
	ods output VariableImportancePlot=vip;
	title 'Final Global Model';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Oct 2020 20:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691074#M33316</guid>
      <dc:creator>Daisy2</dc:creator>
      <dc:date>2020-10-12T20:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS CV after choosing factors?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691077#M33317</link>
      <description>&lt;P&gt;This is how I do it&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run cross-validation&lt;/LI&gt;
&lt;LI&gt;Choose number of factors based upon cross-validation results&lt;/LI&gt;
&lt;LI&gt;Re-fit model to have the number of factors chosen above&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So if I understand you properly, you are doing the same thing. Also, you don't need the variable importance values and most of the other outputs when you are doing the cross-validation run. In that first run of PROC PLS, you just want the cross-validation outputs.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 20:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691077#M33317</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-12T20:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS CV after choosing factors?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691078#M33318</link>
      <description>Awesome. Thanks!</description>
      <pubDate>Mon, 12 Oct 2020 20:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-PLS-CV-after-choosing-factors/m-p/691078#M33318</guid>
      <dc:creator>Daisy2</dc:creator>
      <dc:date>2020-10-12T20:33:28Z</dc:date>
    </item>
  </channel>
</rss>

