<?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: Multiple Logistic Regression Zero Degrees of Freedom in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675602#M32369</link>
    <description>&lt;P&gt;The results are correct. Your age variable has 4 levels and therefore 3 degrees of freedom meaning that only 3 independent parameters can be estimated. The best, and easiest, way to do this is not to create separate indicator variables as you have done, but rather to create a single age variable with 4 distinct values indicating which range the observations fall in. Then, specify that single age variable in the CLASS and MODEL statement. The result will still show 3 parameter estimates for this 4 level variable.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 14:17:17 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2020-08-10T14:17:17Z</dc:date>
    <item>
      <title>Multiple Logistic Regression Zero Degrees of Freedom</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675592#M32367</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a multiple logistic regression analysis with mortality (event = 1) as the dependent variable and various ranges of age (65-69, 70-74, 75-79, 80+) as the independent variables (see code below). When running the analysis, the variable "Age 80+" is displaying zero degrees of freedom and there is no subsequent result generated (see image below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as follows:&lt;/P&gt;&lt;P&gt;"proc logistic data=WORK.OBESITY;&lt;BR /&gt;class Age_65_69 Age_70_74 Age_75_79 Age_80_ / param=glm descending;&lt;BR /&gt;model Overall_Mortality(event='1')=Age_65_69 Age_70_74 Age_75_79 Age_80_ /&lt;BR /&gt;link=logit technique=fisher;&lt;BR /&gt;run;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="darkwob_0-1597066398137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48093iC4B9DCA68EAEB7B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="darkwob_0-1597066398137.png" alt="darkwob_0-1597066398137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reviewing the data, each independent variable has either 0 or 1 as possible inputs, and none of the columns share the same sum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any possible explanation and subsequent solution for this problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675592#M32367</guid>
      <dc:creator>darkwob</dc:creator>
      <dc:date>2020-08-10T13:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Logistic Regression Zero Degrees of Freedom</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675602#M32369</link>
      <description>&lt;P&gt;The results are correct. Your age variable has 4 levels and therefore 3 degrees of freedom meaning that only 3 independent parameters can be estimated. The best, and easiest, way to do this is not to create separate indicator variables as you have done, but rather to create a single age variable with 4 distinct values indicating which range the observations fall in. Then, specify that single age variable in the CLASS and MODEL statement. The result will still show 3 parameter estimates for this 4 level variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 14:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675602#M32369</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-08-10T14:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Logistic Regression Zero Degrees of Freedom</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675605#M32370</link>
      <description>&lt;P&gt;I suspect that there are no valid responses for the 80+ group. You can use PROC FREQ to examine the crosstab:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=Obesity;
tables Overall_Mortality*Age_80_ / nocol norow nopercent missing;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suggest that your analysis might be more interpretable if you create ONE categorical variable that has the age levels that you want. You can &lt;A href="https://blogs.sas.com/content/iml/2019/06/10/5-reasons-to-use-proc-format-to-recode-variables-in-sas.html" target="_self"&gt;use PROC FORMAT to bin the Age variable into categories&lt;/A&gt;. Here is an example that uses the Sashelp.Class data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value AgeFmt  
      low -  13   = "11-13"
       14 -  16   = "14-16"
       17 -   high = "17+";  
run;
 
proc print data=Sashelp.Class;
   format Age AgeFmt.;
run;

proc glm data=Sashelp.Class;
   format Age AgeFmt.;
   class Age;
   model weight = Age / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 14:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-Logistic-Regression-Zero-Degrees-of-Freedom/m-p/675605#M32370</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-10T14:24:22Z</dc:date>
    </item>
  </channel>
</rss>

