<?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 proc glm: class vs. absorb in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239070#M12654</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've recently begun using proc glm to run fixed effects regressions. Say if I want to run a regression of variable A over independent variables B and C, while controlling for year fixed effects, google tells me there are two ways to do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm;&lt;/P&gt;
&lt;P&gt;class year;&lt;/P&gt;
&lt;P&gt;model A=B C / solution noint; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm;&lt;/P&gt;
&lt;P&gt;absorb year;&lt;/P&gt;
&lt;P&gt;model A=B C / solution noint; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Google also tells me that the only difference between the above two is with absorb, estimates of year will not be shown, while with class, they will be shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I tried both, and I don't see individual year fixed effects estimates in either. Also, perhaps more importantly to me, the estimates in B and C are vastly different with the above two procedures. Please help! Which one should I use? And what is the reason for difference estimates on B and C? Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Sun, 13 Dec 2015 22:14:48 GMT</pubDate>
    <dc:creator>JOLSAS</dc:creator>
    <dc:date>2015-12-13T22:14:48Z</dc:date>
    <item>
      <title>proc glm: class vs. absorb</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239070#M12654</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've recently begun using proc glm to run fixed effects regressions. Say if I want to run a regression of variable A over independent variables B and C, while controlling for year fixed effects, google tells me there are two ways to do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm;&lt;/P&gt;
&lt;P&gt;class year;&lt;/P&gt;
&lt;P&gt;model A=B C / solution noint; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm;&lt;/P&gt;
&lt;P&gt;absorb year;&lt;/P&gt;
&lt;P&gt;model A=B C / solution noint; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Google also tells me that the only difference between the above two is with absorb, estimates of year will not be shown, while with class, they will be shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I tried both, and I don't see individual year fixed effects estimates in either. Also, perhaps more importantly to me, the estimates in B and C are vastly different with the above two procedures. Please help! Which one should I use? And what is the reason for difference estimates on B and C? Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2015 22:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239070#M12654</guid>
      <dc:creator>JOLSAS</dc:creator>
      <dc:date>2015-12-13T22:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm: class vs. absorb</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239081#M12656</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;SPAN&gt; statement defines which variables are to be treated as categorical variables in the &lt;/SPAN&gt;&lt;STRONG&gt;model&lt;/STRONG&gt;&lt;SPAN&gt; statement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And you did not add the variable&amp;nbsp;&lt;U&gt;year&lt;/U&gt; in the model statment, after the&amp;nbsp;Class statment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm;&lt;/P&gt;&lt;P&gt;class year;&lt;/P&gt;&lt;P&gt;model A=B C &lt;SPAN&gt;year&lt;/SPAN&gt;/ solution noint; run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you will get the&amp;nbsp;&lt;SPAN&gt; individual year fixed effects estimates. And you should get no&amp;nbsp;difference estimates on B and C&amp;nbsp;for the&amp;nbsp;two procedures&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 00:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239081#M12656</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-14T00:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm: class vs. absorb</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239082#M12657</link>
      <description>&lt;P&gt;Also in general i found this paper to be helpful "&lt;A href="http://www2.sas.com/proceedings/sugi31/184-31.pdf" target="_self"&gt;Fixed Effects Regression Methods In SAS®&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 00:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239082#M12657</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-14T00:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm: class vs. absorb</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239086#M12658</link>
      <description>&lt;P&gt;Hi Mohamed,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for the answer! I added year in and saw the individual estimates. Also when I included year as an independent variable, the estimates are not different with class or absorb. Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 02:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-class-vs-absorb/m-p/239086#M12658</guid>
      <dc:creator>JOLSAS</dc:creator>
      <dc:date>2015-12-14T02:28:35Z</dc:date>
    </item>
  </channel>
</rss>

