<?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 Re: Proc PLS VIP table needed in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/629547#M77628</link>
    <description>&lt;P&gt;Hi Paige,&lt;/P&gt;
&lt;P&gt;It has nothing to do with PROC PLS. It is a general SAS-ism that you can use ODS OUTPUT to get the data object that underlies any graph. &lt;A href="https://blogs.sas.com/content/iml/2012/08/01/data-fro-ods-graphics.html" target="_self"&gt;I wrote about it back in 2012&lt;/A&gt;, because I, too, didn't think enough people knew this trick. One place it is mentioned in the SAS/STAT doc in the section &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect014.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;"Statistical Graphics Using ODS"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;where a bullet says "&lt;SPAN&gt;ODS OUTPUT statements, which create SAS data sets from the data object that is used to make the plot. See the section &lt;/SPAN&gt;&lt;A tabindex="0" href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect028.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" data-docset-version="15.1" data-docset-id="statug" data-original-href="statug_odsgraph_sect028.htm"&gt;Specifying an ODS Destination for Graphics&lt;/A&gt;&lt;SPAN&gt; for an example." When you follow the link you see an example of a FitPlot in PROC REG that is written to a data set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For a cool application of capturing the data object, see Kufeld's article &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/01/05/advanced-ods-graphics-processing-ods-output-data-sets-proc-sgplot/" target="_self"&gt;"Processing ODS OUTPUT data sets from PROC SGPLOT,"&lt;/A&gt; and many of his papers and books.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 18:51:07 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-03-04T18:51:07Z</dc:date>
    <item>
      <title>Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628483#M77546</link>
      <description>&lt;P&gt;I'm using Proc PLS and with the following code I was able to generate a VIP plot, but I have so many X variables (57) that they're hard to distinguish in the VIP Plot.&amp;nbsp; Is there a way I can generate a &lt;U&gt;VIP table&lt;/U&gt; so I can sort through my X variables to remove those with VIP values &amp;lt;0.8 and low (in absolute value) parameter estimates as recommended inthe documentation?&amp;nbsp; I've got the Parameter estimates table already.&amp;nbsp; Thanks.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc pls data=t_hsisubset_sort cv=split cvtest varss plots=(diagnostics dmod xyscores ParmProfiles VIP XLoadingProfiles);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Feb 2020 21:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628483#M77546</guid>
      <dc:creator>Daisy2</dc:creator>
      <dc:date>2020-02-29T21:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628496#M77547</link>
      <description>&lt;P&gt;You can use the %get_vip macro at &lt;A href="https://support.sas.com/rnd/app/stat/papers/plsex.pdf" target="_blank"&gt;https://support.sas.com/rnd/app/stat/papers/plsex.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 22:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628496#M77547</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-29T22:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628512#M77549</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
/* Pick up variable by PROC PLS */
ods output  VariableImportancePlot= VariableImportancePlot;
proc pls data=class  missing=em  nfact=2 plot=(ParmProfiles VIP) ;
 class sex;
 model age=weight height sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check DataSet&amp;nbsp; VariableImportancePlot .&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 04:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628512#M77549</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-01T04:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628550#M77552</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; have you actually tried this to see if it works?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no such mention of an ODS OUTPUT option called VariableImportancePlot in the documentation at &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_pls_details11.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_pls_details11.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 11:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628550#M77552</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-01T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628559#M77553</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; refers to the dataset behind the VIP graph which you can get via ODS OUTPUT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pentaTrain;
   input obsnam $ S1 L1 P1 S2 L2 P2
                  S3 L3 P3 S4 L4 P4
                  S5 L5 P5  log_RAI @@;
   n = _n_;
   datalines;
VESSK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          1.9607 -1.6324  0.5746  1.9607 -1.6324  0.5746
          2.8369  1.4092 -3.1398                    0.00
VESAK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          1.9607 -1.6324  0.5746  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    0.28
VEASK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          0.0744 -1.7333  0.0902  1.9607 -1.6324  0.5746
          2.8369  1.4092 -3.1398                    0.20
VEAAK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    0.51
VKAAK    -2.6931 -2.5271 -1.2871  2.8369  1.4092 -3.1398
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    0.11
VEWAK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
         -4.7548  3.6521  0.8524  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    2.73
VEAAP    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
         -1.2201  0.8829  2.2253                    0.18
VEHAK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          2.4064  1.7438  1.1057  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    1.53
VAAAK    -2.6931 -2.5271 -1.2871  0.0744 -1.7333  0.0902
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                   -0.10
GEAAK     2.2261 -5.3648  0.3049  3.0777  0.3891 -0.0701
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                   -0.52
LEAAK    -4.1921 -1.0285 -0.9801  3.0777  0.3891 -0.0701
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    0.40
FEAAK    -4.9217  1.2977  0.4473  3.0777  0.3891 -0.0701
          0.0744 -1.7333  0.0902  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    0.30
VEGGK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
          2.2261 -5.3648  0.3049  2.2261 -5.3648  0.3049
          2.8369  1.4092 -3.1398                   -1.00
VEFAK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
         -4.9217  1.2977  0.4473  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    1.57
VELAK    -2.6931 -2.5271 -1.2871  3.0777  0.3891 -0.0701
         -4.1921 -1.0285 -0.9801  0.0744 -1.7333  0.0902
          2.8369  1.4092 -3.1398                    0.59
;

proc pls data=pentaTrain nfac=2 plot=(VIP);
   model log_RAI = S1-S5 L1-L5 P1-P5;
   ods output VariableImportancePlot=vip;
run;

proc print data=vip noobs; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;Label 	VIP
S1 	0.61108
S2 	0.50482
S3 	1.57775
S4 	1.22255
S5 	0.21288
L1 	0.31822
L2 	0.27123
L3 	2.43480
L4 	1.17994
L5 	0.21288
P1 	0.75127
P2 	0.35927
P3 	1.13222
P4 	0.88380
P5 	0.21288&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Mar 2020 16:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628559#M77553</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-03-01T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628574#M77554</link>
      <description>&lt;P&gt;Odd that this is not mentioned in the documentation.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 19:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628574#M77554</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-01T19:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628590#M77555</link>
      <description>It's available for all ods graphics but definitely one of those things you need to know exists and is possible.</description>
      <pubDate>Sun, 01 Mar 2020 21:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628590#M77555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-01T21:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628591#M77556</link>
      <description>&lt;P&gt;It is mentioned that you can get the plot via the PLOTS=VIP option, and this particular plot is called the VarianceImportancePlot in case you want to select the plot specifically. It is not mentioned in the list of possible ODS table names from PROC PLS at the link I provided earlier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will submit a request to SAS Technical Support to update their documentation.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 22:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628591#M77556</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-01T22:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628592#M77557</link>
      <description>In general, you can get the data from any plot with the same name is the 'thing' that's uncommon knowledges similar to any ODS table.</description>
      <pubDate>Sun, 01 Mar 2020 22:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628592#M77557</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-01T22:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628597#M77559</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;In general, you can get the data from any plot with the same name is the 'thing' that's uncommon knowledges similar to any ODS table.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have never heard of this. I will give this a try on other plots tomorrow.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 22:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628597#M77559</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-01T22:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628665#M77582</link>
      <description>&lt;P&gt;Yes. I tried it before . Working .&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 06:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/628665#M77582</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-02T06:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc PLS VIP table needed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/629547#M77628</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;
&lt;P&gt;It has nothing to do with PROC PLS. It is a general SAS-ism that you can use ODS OUTPUT to get the data object that underlies any graph. &lt;A href="https://blogs.sas.com/content/iml/2012/08/01/data-fro-ods-graphics.html" target="_self"&gt;I wrote about it back in 2012&lt;/A&gt;, because I, too, didn't think enough people knew this trick. One place it is mentioned in the SAS/STAT doc in the section &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect014.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;"Statistical Graphics Using ODS"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;where a bullet says "&lt;SPAN&gt;ODS OUTPUT statements, which create SAS data sets from the data object that is used to make the plot. See the section &lt;/SPAN&gt;&lt;A tabindex="0" href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect028.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" data-docset-version="15.1" data-docset-id="statug" data-original-href="statug_odsgraph_sect028.htm"&gt;Specifying an ODS Destination for Graphics&lt;/A&gt;&lt;SPAN&gt; for an example." When you follow the link you see an example of a FitPlot in PROC REG that is written to a data set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For a cool application of capturing the data object, see Kufeld's article &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/01/05/advanced-ods-graphics-processing-ods-output-data-sets-proc-sgplot/" target="_self"&gt;"Processing ODS OUTPUT data sets from PROC SGPLOT,"&lt;/A&gt; and many of his papers and books.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-PLS-VIP-table-needed/m-p/629547#M77628</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-04T18:51:07Z</dc:date>
    </item>
  </channel>
</rss>

