<?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: GLM ABSORB for Two-Way Fixed-Effect Model? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684859#M207620</link>
    <description>&lt;P&gt;Sad news since LSDV-estimating multi-way fixed-effect models is computationally costly, but thanks anyway.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 03:25:19 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-09-18T03:25:19Z</dc:date>
    <item>
      <title>GLM ABSORB for Two-Way Fixed-Effect Model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684501#M207430</link>
      <description>&lt;P&gt;I use &lt;CODE&gt;class&lt;/CODE&gt; in &lt;CODE&gt;proc glm&lt;/CODE&gt; to run a one-way fixed-effect model as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
do i=1 to 3;
do j=1 to 3;
do k=1 to 10;
x=rannor(1);
y=x+rannor(1);
output;
end;
end;
end;
run;

proc glm data=have;
class i;
model y=x i/noint solution;
ods output parameterestimates=oneway_class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or sometimes I use &lt;CODE&gt;absorb&lt;/CODE&gt; because it is faster than &lt;CODE&gt;class&lt;/CODE&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=have;
absorb i;
model y=x/noint solution;
ods output parameterestimates=oneway_absorb;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I found that &lt;CODE&gt;absorb&lt;/CODE&gt;, unlike &lt;CODE&gt;class&lt;/CODE&gt;, cannot estimate a two-way fixed-effect model in this way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*THE FOLLOWING ESTIMATES TWO-WAY FIXED-EFFECT MODELS CORRECTLY*/
proc glm data=have;
class i j;
model y=x i j/noint solution;
ods output parameterestimates=twoway_class;
quit;

/*THE FOLLOWING DOES NOT ESTIMATE TWO-WAY FIXED-EFFECT MODELS*/
proc glm data=have;
absorb i j;
model y=x/noint solution;
ods output parameterestimates=twoway_absorb;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Though the first &lt;CODE&gt;glm&lt;/CODE&gt; with &lt;CODE&gt;class&lt;/CODE&gt; is correct, it becomes too slow because the real data have so many observations. How can I estimate a two-way fixed-effect model with &lt;CODE&gt;absorb&lt;/CODE&gt; in &lt;CODE&gt;glm&lt;/CODE&gt; instead?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 04:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684501#M207430</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-09-17T04:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: GLM ABSORB for Two-Way Fixed-Effect Model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684545#M207464</link>
      <description>&lt;P&gt;Correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the ABSORB statement with two variables, ABSORB assumes that the second variable in the list is nested within the first, and this is not the design you have.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 10:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684545#M207464</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-17T10:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: GLM ABSORB for Two-Way Fixed-Effect Model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684747#M207561</link>
      <description>&lt;P&gt;Thanks. Then should I give up the &lt;CODE&gt;absorb&lt;/CODE&gt; approach for two-way fixed effects?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 18:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684747#M207561</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-09-17T18:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: GLM ABSORB for Two-Way Fixed-Effect Model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684808#M207598</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173881"&gt;@Junyong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks. Then should I give up the &lt;CODE&gt;absorb&lt;/CODE&gt; approach for two-way fixed effects?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would replace the word "should" with "must"&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684808#M207598</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-17T21:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: GLM ABSORB for Two-Way Fixed-Effect Model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684859#M207620</link>
      <description>&lt;P&gt;Sad news since LSDV-estimating multi-way fixed-effect models is computationally costly, but thanks anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 03:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLM-ABSORB-for-Two-Way-Fixed-Effect-Model/m-p/684859#M207620</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-09-18T03:25:19Z</dc:date>
    </item>
  </channel>
</rss>

