<?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: Missing output from proc hpreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-output-from-proc-hpreg/m-p/839424#M41572</link>
    <description>&lt;P&gt;It depends on how you computed the dummy variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the sum of all the dummy variables for a variable add to 1 for every record, then you get the results you saw, and SAS has done the right thing. Very simple example using gender:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dummy_F&amp;nbsp;      &amp;nbsp; dummy_M                sum
1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0                     1
0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1                     1&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gender has two levels and therefore it has 1 degree of freedom, only one effect from one dummy variable can be estimated. The other effect is uniquely determined, and so has 0 degrees of freedom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, if you use just dummy_F and not dummy_M, you get the same results in terms of predicted values, but you don't run into the problem where some of the dummy variables have zero degrees of freedom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which brings us to the solution: do not use dummy variables that you have created for PROC LOGISTIC, PROC HPREG, PROC GLM, PROC GLIMMIX and many others. The CLASS statement not only creates dummy variables behind the scene, but it guarantees it is done properly and analyzed properly. And the CLASS statement is much easier than creating your own dummy variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 17:14:10 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-10-19T17:14:10Z</dc:date>
    <item>
      <title>Missing output from proc hpreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-output-from-proc-hpreg/m-p/839408#M41571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I performed regression analysis using proc hpreg and found out some dummy variables are missing in all of df, estimate, standard error, p value. However when I applied proc hpreg on these dummy variables only, these dummy variables have values/outputs. Does anyone have any insight about it? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 15:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-output-from-proc-hpreg/m-p/839408#M41571</guid>
      <dc:creator>lionking19063</dc:creator>
      <dc:date>2022-10-19T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Missing output from proc hpreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-output-from-proc-hpreg/m-p/839424#M41572</link>
      <description>&lt;P&gt;It depends on how you computed the dummy variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the sum of all the dummy variables for a variable add to 1 for every record, then you get the results you saw, and SAS has done the right thing. Very simple example using gender:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dummy_F&amp;nbsp;      &amp;nbsp; dummy_M                sum
1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0                     1
0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1                     1&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gender has two levels and therefore it has 1 degree of freedom, only one effect from one dummy variable can be estimated. The other effect is uniquely determined, and so has 0 degrees of freedom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, if you use just dummy_F and not dummy_M, you get the same results in terms of predicted values, but you don't run into the problem where some of the dummy variables have zero degrees of freedom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which brings us to the solution: do not use dummy variables that you have created for PROC LOGISTIC, PROC HPREG, PROC GLM, PROC GLIMMIX and many others. The CLASS statement not only creates dummy variables behind the scene, but it guarantees it is done properly and analyzed properly. And the CLASS statement is much easier than creating your own dummy variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 17:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-output-from-proc-hpreg/m-p/839424#M41572</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-19T17:14:10Z</dc:date>
    </item>
  </channel>
</rss>

