<?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: Absorb Statment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701416#M214795</link>
    <description>&lt;P&gt;What did you get for output? That is often a real easy way to see if two things are equivalent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you need to read the documentation closely. Specifically:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.glm.glmabsorb" class="AAsection"&gt;
&lt;P&gt;Several variables can be specified, in which case each one is assumed to be nested in the&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt; preceding&lt;/STRONG&gt;&lt;/FONT&gt; variable in the ABSORB statement.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So since you have changing order in your staff(herd) (herd is not the preceding variable for staff) very likely not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 01:49:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-25T01:49:54Z</dc:date>
    <item>
      <title>Absorb Statment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701412#M214792</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious how 3 variables in the absorb statement would break down in a proc glm.&amp;nbsp;&amp;nbsp;For example, according to the sas docs the below are equivalent:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
   absorb herd cow;
   class a b;
   model y=a b a*b;
run;

proc glm;
   class herd cow a b;
   model y=herd cow(herd) a b a*b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The docs also state that for the Absorb statement:&amp;nbsp;&lt;EM&gt;Several variables can be specified, in which case each one is assumed to be nested in the preceding variable&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;in the ABSORB statement.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So would the below then be equivalent?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
   absorb herd cow staff;
   class a b;
   model y=a b a*b;
run;

proc glm;
   class herd cow staff a b;
   model y=herd cow(herd) staff(herd) staff(cow) a b a*b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 01:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701412#M214792</guid>
      <dc:creator>jdykstra</dc:creator>
      <dc:date>2020-11-25T01:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Absorb Statment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701416#M214795</link>
      <description>&lt;P&gt;What did you get for output? That is often a real easy way to see if two things are equivalent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you need to read the documentation closely. Specifically:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.glm.glmabsorb" class="AAsection"&gt;
&lt;P&gt;Several variables can be specified, in which case each one is assumed to be nested in the&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt; preceding&lt;/STRONG&gt;&lt;/FONT&gt; variable in the ABSORB statement.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So since you have changing order in your staff(herd) (herd is not the preceding variable for staff) very likely not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 01:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701416#M214795</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-25T01:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Absorb Statment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701423#M214799</link>
      <description>&lt;P&gt;I have an equation with 5 absorption variables.. So I can't really "check" them because I wouldn't know how to create the equation that doesn't use the "Absorb" statement.&amp;nbsp; Also, I read the methodology carefully, I was just basing this off the example the docs give, which you can see in my opening questions. You should read that more carefully.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 02:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701423#M214799</guid>
      <dc:creator>jdykstra</dc:creator>
      <dc:date>2020-11-25T02:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Absorb Statment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701438#M214805</link>
      <description>&lt;P&gt;As to checking whether results are equivalent, you don't have to do 5 variables - just any number more than 2.&amp;nbsp; I don't know, maybe 3?&amp;nbsp; You could then explicitly check your conjecture, using the syntax you suggested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But ..., the phrase "nested in the &lt;EM&gt;&lt;STRONG&gt;preceding variable&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;[note singular case] in the ABSORB statement" taken literally, would suggest that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
  absorb herd cow staff;
  model y=a b a*b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is NOT equivalent to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
  class herd cow staff a b;
  model y=herd cow(herd) staff(herd) staff(cow) a b a*b;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would interpret the text of the quoted documentation to mean the equivalent would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
  class herd cow staff a b;
  model y=herd cow(herd) staff(cow) a b a*b;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;although this disturbs me, since I don't see how it accommodates staff*herd interaction (which your suggestion does), nor herd*staff*cow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;absorb herd cow staff;&lt;/FONT&gt;&lt;/STRONG&gt; statement is really equivalent to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
  class herd cow staff a b;
  model y=herd cow*herd staff*cow*herd a b a*b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This latter model doesn't ask for estimates of the main effects of cow or staff, nor the cow*staff or herd*staff interactions.&amp;nbsp; But they are essentially nuisance parameters for your purposes.&amp;nbsp; I think the &lt;EM&gt;&lt;STRONG&gt;cow&lt;/STRONG&gt;&lt;/EM&gt; main effect would be "absorbed" in the specified &lt;EM&gt;&lt;STRONG&gt;cow*herd&lt;/STRONG&gt;&lt;/EM&gt; estimate. Similarly the &lt;EM&gt;&lt;STRONG&gt;staff&lt;/STRONG&gt;&lt;/EM&gt; main effect, the &lt;EM&gt;&lt;STRONG&gt;staff*cow&lt;/STRONG&gt;&lt;/EM&gt; interaction, and the &lt;EM&gt;&lt;STRONG&gt;staff*herd&lt;/STRONG&gt;&lt;/EM&gt; interaction would all be absorbed in the staff*cow*herd interaction.&amp;nbsp; However, this is just speculation on my part, but testable.&amp;nbsp; &amp;nbsp;If I'm right, though, then the equivalent for absorbing 5 variables (call them M, N, O, P, and Q) would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
  class M N O P Q  A B;
  model y= M N*M O*N*M P*O*N*M Q*P*O*N*M   A B A*B;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would appreciate comments from any of our experienced statistics practitioners.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 01:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Absorb-Statment/m-p/701438#M214805</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-02-19T01:15:53Z</dc:date>
    </item>
  </channel>
</rss>

