<?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 How to get stb and ss2 in proc hpgenselect? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-stb-and-ss2-in-proc-hpgenselect/m-p/525834#M73519</link>
    <description>&lt;P&gt;I use the PROC HPGENSELECT with the STEPWISE selection&amp;nbsp;method as following (SAS 9.4):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s1"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;HPGENSELECT&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=kin.nogeneticmut ;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;CLASS&lt;/SPAN&gt; sex gal_cinetique;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; ldlsi = age sex bmi PR_VLDL_B100 lFCR_VLDL_B100 lPR_IDL_B100&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;lFCR_IDL_B100&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;lPR_LDL_B100 lFCR_LDL_B100 ltg gal_cinetique&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;distribution&lt;/SPAN&gt;=normal &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt;=id;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;EM&gt;selection method&lt;SPAN class="s3"&gt;=stepwise &lt;/SPAN&gt;details&lt;SPAN class="s3"&gt; = all&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;EM&gt;RUN&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;- Get the adjusted rsquare of the final model (&lt;EM&gt;ss2&lt;/EM&gt;&amp;nbsp;option in the model statement in proc reg -&amp;gt; total and individual rsquare for each X values);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Get the standardized estimates (&lt;EM&gt;stb&lt;/EM&gt;&amp;nbsp;option in the model statement in proc reg).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the NOCENTER option as follow to get the standardized estimates:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s1"&gt;PROC&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="s1"&gt;HPGENSELECT&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=kin.nogeneticmut ;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;CLASS&lt;/SPAN&gt;&amp;nbsp;sex gal_cinetique;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt;&amp;nbsp;ldlsi = age sex bmi PR_VLDL_B100 lFCR_VLDL_B100 lPR_IDL_B100&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;lFCR_IDL_B100&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;lPR_LDL_B100 lFCR_LDL_B100 ltg gal_cinetique&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;distribution&lt;/SPAN&gt;=normal&amp;nbsp;&lt;SPAN class="s2"&gt;link&lt;/SPAN&gt;=id NOCENTER;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;EM&gt;selection method&lt;SPAN class="s3"&gt;=stepwise&amp;nbsp;&lt;/SPAN&gt;details&lt;SPAN class="s3"&gt;&amp;nbsp;= all&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;EM&gt;RUN&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s3"&gt;but it doesn't work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s3"&gt;May you help me?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 19:39:30 GMT</pubDate>
    <dc:creator>jallaire</dc:creator>
    <dc:date>2019-01-09T19:39:30Z</dc:date>
    <item>
      <title>How to get stb and ss2 in proc hpgenselect?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-stb-and-ss2-in-proc-hpgenselect/m-p/525834#M73519</link>
      <description>&lt;P&gt;I use the PROC HPGENSELECT with the STEPWISE selection&amp;nbsp;method as following (SAS 9.4):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s1"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;HPGENSELECT&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=kin.nogeneticmut ;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;CLASS&lt;/SPAN&gt; sex gal_cinetique;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; ldlsi = age sex bmi PR_VLDL_B100 lFCR_VLDL_B100 lPR_IDL_B100&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;lFCR_IDL_B100&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;lPR_LDL_B100 lFCR_LDL_B100 ltg gal_cinetique&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;distribution&lt;/SPAN&gt;=normal &lt;SPAN class="s2"&gt;link&lt;/SPAN&gt;=id;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;EM&gt;selection method&lt;SPAN class="s3"&gt;=stepwise &lt;/SPAN&gt;details&lt;SPAN class="s3"&gt; = all&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;EM&gt;RUN&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;- Get the adjusted rsquare of the final model (&lt;EM&gt;ss2&lt;/EM&gt;&amp;nbsp;option in the model statement in proc reg -&amp;gt; total and individual rsquare for each X values);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Get the standardized estimates (&lt;EM&gt;stb&lt;/EM&gt;&amp;nbsp;option in the model statement in proc reg).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the NOCENTER option as follow to get the standardized estimates:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s1"&gt;PROC&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="s1"&gt;HPGENSELECT&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=kin.nogeneticmut ;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;CLASS&lt;/SPAN&gt;&amp;nbsp;sex gal_cinetique;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt;&amp;nbsp;ldlsi = age sex bmi PR_VLDL_B100 lFCR_VLDL_B100 lPR_IDL_B100&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;lFCR_IDL_B100&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;lPR_LDL_B100 lFCR_LDL_B100 ltg gal_cinetique&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;/&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;distribution&lt;/SPAN&gt;=normal&amp;nbsp;&lt;SPAN class="s2"&gt;link&lt;/SPAN&gt;=id NOCENTER;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;EM&gt;selection method&lt;SPAN class="s3"&gt;=stepwise&amp;nbsp;&lt;/SPAN&gt;details&lt;SPAN class="s3"&gt;&amp;nbsp;= all&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;EM&gt;RUN&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s3"&gt;but it doesn't work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s3"&gt;May you help me?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 19:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-stb-and-ss2-in-proc-hpgenselect/m-p/525834#M73519</guid>
      <dc:creator>jallaire</dc:creator>
      <dc:date>2019-01-09T19:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get stb and ss2 in proc hpgenselect?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-stb-and-ss2-in-proc-hpgenselect/m-p/526416#M73538</link>
      <description>&lt;P&gt;Because&amp;nbsp;you are using DIST=NORMAL and LINK=ID, you can actually use PROC GLMSELECT to solve this problem (probably faster and&amp;nbsp;provides more statistics).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At any rate, the answer to your question is that the HPGENSELECT procedure (and GLMSELECT, too) creates &lt;A href="https://blogs.sas.com/content/iml/2018/08/01/variables-in-final-selected-model.html" target="_self"&gt;a macro variable that contains the names of the variables that are selected in the final model.&lt;/A&gt;&amp;nbsp;You can reference the macro variable on the MODEL statement of other procedures (GLM, GENMOD,....) to obtain statistics for the final model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your model includes CLASS variables, you can't use PROC REG unless you also generate the design matrix. See the last example in the article.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-stb-and-ss2-in-proc-hpgenselect/m-p/526416#M73538</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-11T16:45:34Z</dc:date>
    </item>
  </channel>
</rss>

