<?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 REG setting values to 0 in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36430#M1532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, NOTES not ERRORS in the log. The docs do say the defaults are an overparameterized model as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_glm_sect030.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_glm_sect030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"There are more columns for these effects than there are degrees of freedom for them; in other words, PROC GLM is using an over-parameterized model."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether or not you should remove them is a matter of opinion I suppose. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 21:49:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-01-23T21:49:21Z</dc:date>
    <item>
      <title>PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36424#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the following notes using PROC REG in my output:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="100" width="256"&gt;Model is not full rank. Least-squares solutions for the parameters are not unique. Some statistics will be misleading. A reported DF of 0 or B means that the estimate is biased.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="80" width="256"&gt;The following parameters have been set to 0, since the variables are a linear combination of other variables as shown.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 512px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="256"&gt;other =&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="256"&gt;Intercept - lung - heart - esrd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: medium none;" width="256"&gt;female =&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;" width="256"&gt;Intercept - male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="41" style="border-top: medium none;" width="256"&gt;other_race =&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="256"&gt;Intercept - white_race - black_race - hisp_race&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The three groups of variables as part of the model are being used as flags, where one and only one of the variables can have a value of 1, and the others 0&lt;/P&gt;&lt;P&gt;(example:If Male is 1, Female is 0 and vice versa).&amp;nbsp; Other variables listed in the model statement are non-binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code looks as follows:&lt;/P&gt;&lt;P&gt;proc reg data=data alpha=.05;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model age=risk_score living lung heart esrd other count_visits male female white_race black_race hisp_race other_race median_income pop_density pct_rental;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; plot predicted.*residual. / name=Graph1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;I am not a statistician, so I can't really explain to my client what is happening.&amp;nbsp; Why is SAS setting the "other" values to 0?&amp;nbsp; I am getting the same behavior (same MODEL) using&lt;/P&gt;&lt;P&gt;PROC AUTOREG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 18:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36424#M1526</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2012-01-23T18:35:05Z</dc:date>
    </item>
    <item>
      <title>PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36425#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've overparameterized your model. Basically, if you have a categorical variable such as male/female you only include one in the model not both otherwise the second will get set to 0. Same issue with race. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check any intro regression text on how to code categorical variables or see here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter5/sasreg5.htm"&gt;http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter5/sasreg5.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 18:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36425#M1527</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-01-23T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36426#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do those variables really need to be removed?&amp;nbsp; I don't think so.&amp;nbsp; This is parameterized the same way GLM would if GENDER and RACE were CLASS variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 18:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36426#M1528</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-01-23T18:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36427#M1529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using SAS for close to 18 years but have just begun dabbling in SAS/STAT.&amp;nbsp; I'll take a look at the webpage&lt;/P&gt;&lt;P&gt;you suggested.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 18:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36427#M1529</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2012-01-23T18:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36428#M1530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean if you have male and female, then you include only one of male or female, not both male and female, ie if you have a binary variable called sex where 0=Male, 1=Female that would be the same. &lt;/P&gt;&lt;P&gt;The errors above are SAS correcting for this, and the estimates that are left in appear correct, but I like to specify the coding in case the defaults aren't what I'd want to see.&amp;nbsp; And to avoid error messages. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 20:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36428#M1530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-01-23T20:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36429#M1531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I don't see any ERROR messages?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 21:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36429#M1531</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-01-23T21:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36430#M1532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, NOTES not ERRORS in the log. The docs do say the defaults are an overparameterized model as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_glm_sect030.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_glm_sect030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"There are more columns for these effects than there are degrees of freedom for them; in other words, PROC GLM is using an over-parameterized model."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether or not you should remove them is a matter of opinion I suppose. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 21:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36430#M1532</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-01-23T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36431#M1533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting the same error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Model is not full rank. Least-squares solutions for the parameters are not unique. Some statistics will be misleading. A reported DF of 0 or B means that the estimate is biased. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The following parameters have been set to 0, since the variables are a linear combination of other variables as shown.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The structure of my model is like this:&lt;/P&gt;&lt;P&gt;sales=f(price,qtr_id)&lt;/P&gt;&lt;P&gt;qtr_id stretches from t4 to t11 (they are binary values, with only one of them equal to 1, rest 0 for a row - like identity matrix).&lt;/P&gt;&lt;P&gt;However, it says that t11 is a linear combination of intercept and t4-t10.&lt;/P&gt;&lt;P&gt;Any reason why this is happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 12:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36431#M1533</guid>
      <dc:creator>abhik_giri</dc:creator>
      <dc:date>2015-01-08T12:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG setting values to 0</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36432#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the same problem as above.&amp;nbsp; If your data runs from t4 to t11, you must leave out one of the periods.&amp;nbsp; Otherwise, you have overparameterized your model.&amp;nbsp; Simply, leave out the qtr_id for, say, t4 and SAS will estimate your model correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-REG-setting-values-to-0/m-p/36432#M1534</guid>
      <dc:creator>statguy22</dc:creator>
      <dc:date>2015-01-08T15:26:34Z</dc:date>
    </item>
  </channel>
</rss>

