<?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: Problems when Absorbing two variables using Proc glm in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387866#M20199</link>
    <description>&lt;P&gt;You have only showed us the code for one of the models. Your description seems to indicate a fairly straightforward change to the code for the second model, but it would still be nice if you showed it to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My other concern is that you have 82000 df for the model in the first output, this doesn't seem to be a likely number, it seems way too large for any type of teacher/testing scenario I am aware of. Also, the total degrees of freedom, over 300,000, is also way too large for any type of teacher/testing scenario. Can you explain why these numbers are so large?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 17:28:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2017-08-14T17:28:11Z</dc:date>
    <item>
      <title>Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387215#M20166</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am running fixed effects model that regress outcome on A while controlling for both student FE (studentid) and course FE (courseid). I used Proc glm. My understanding is that i can absorb both studentid and courseid.&lt;BR /&gt;In my first model, I only absorbed one variable:&lt;BR /&gt;Proc glm data=data;&lt;BR /&gt;Class courseid;&lt;BR /&gt;Absorb studentid;&lt;BR /&gt;Model outcome=A courseid;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I had no problems running the model and the coefficients on A look correct. However when I add both course ID and student ID in the absorb function, sas fails to provide a valid coefficients for A. Shouldn't the two models-year-old exactly the same results?&lt;BR /&gt;Any insights are appreciated!</description>
      <pubDate>Fri, 11 Aug 2017 01:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387215#M20166</guid>
      <dc:creator>Xudeer</dc:creator>
      <dc:date>2017-08-11T01:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387217#M20167</link>
      <description />
      <pubDate>Fri, 11 Aug 2017 01:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387217#M20167</guid>
      <dc:creator>Xudeer</dc:creator>
      <dc:date>2017-08-11T01:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387257#M20170</link>
      <description>&lt;P&gt;Agree, it should give same estimates for A. Unless&amp;nbsp;courseID is nested in A, because you then in practice also have absorbed A when you absorb courseID.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 08:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387257#M20170</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-08-11T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387861#M20198</link>
      <description>&lt;P&gt;Thank you Jacob!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is why I got confused. My courseID is not nested in A. A is actually teacher ID. The majority of courses are taught by multiple college instructors and each instructor is teaching multiple courses as well. The most confusing thing is that when I only absorb student ID and add courseID and my key variabe A (instructorID) as dummy variables, my model is totally fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Source DF Sum of Squares Mean Square F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;F Model Error Corrected Total &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;82000&lt;/TD&gt;&lt;TD&gt;32715.80481&lt;/TD&gt;&lt;TD&gt;0.39897&lt;/TD&gt;&lt;TD&gt;2.39&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;241302&lt;/TD&gt;&lt;TD&gt;40251.64007&lt;/TD&gt;&lt;TD&gt;0.16681&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;323302&lt;/TD&gt;&lt;TD&gt;72967.44488&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;R-Square Coeff Var Root MSE second_2yr&amp;nbsp;Mean &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.448362&lt;/TD&gt;&lt;TD&gt;118.6951&lt;/TD&gt;&lt;TD&gt;0.408424&lt;/TD&gt;&lt;TD&gt;0.344095&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, once I abosorb both studentID and courseID. the model explodes, incating that something is wrong:&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Source DF Sum of Squares Mean Square F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;F Model Error Corrected Total &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;323250&lt;/TD&gt;&lt;TD&gt;72954.59899&lt;/TD&gt;&lt;TD&gt;0.22569&lt;/TD&gt;&lt;TD&gt;0.91&lt;/TD&gt;&lt;TD&gt;0.7029&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;TD&gt;12.84589&lt;/TD&gt;&lt;TD&gt;0.24704&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;323302&lt;/TD&gt;&lt;TD&gt;72967.44488&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;R-Square Coeff Var Root MSE second_2yr&amp;nbsp;Mean &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.999824&lt;/TD&gt;&lt;TD&gt;144.4448&lt;/TD&gt;&lt;TD&gt;0.497028&lt;/TD&gt;&lt;TD&gt;0.344095&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&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;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Aug 2017 16:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387861#M20198</guid>
      <dc:creator>Xudeer</dc:creator>
      <dc:date>2017-08-14T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387866#M20199</link>
      <description>&lt;P&gt;You have only showed us the code for one of the models. Your description seems to indicate a fairly straightforward change to the code for the second model, but it would still be nice if you showed it to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My other concern is that you have 82000 df for the model in the first output, this doesn't seem to be a likely number, it seems way too large for any type of teacher/testing scenario I am aware of. Also, the total degrees of freedom, over 300,000, is also way too large for any type of teacher/testing scenario. Can you explain why these numbers are so large?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 17:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/387866#M20199</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-14T17:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388032#M20208</link>
      <description>&lt;P&gt;Thank you for the response, PaigeMiller!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my first model that only absorbs studentID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=derived.fouryear;&lt;BR /&gt;absorb student_nid;&lt;BR /&gt;class instructor_nid coursenid_ft;&lt;BR /&gt;model second_2yr=instructor_nid coursenid_ft / solution;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the outputs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV class="c proctitle"&gt;Dependent Variable: second_2yr&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Source DF Sum of Squares Mean Square F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;F Model Error Corrected Total &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;81979&lt;/TD&gt;&lt;TD&gt;31583.90047&lt;/TD&gt;&lt;TD&gt;0.38527&lt;/TD&gt;&lt;TD&gt;2.25&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;241323&lt;/TD&gt;&lt;TD&gt;41383.54441&lt;/TD&gt;&lt;TD&gt;0.17149&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;323302&lt;/TD&gt;&lt;TD&gt;72967.44488&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;R-Square Coeff Var Root MSE second_2yr&amp;nbsp;Mean &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.432849&lt;/TD&gt;&lt;TD&gt;120.3472&lt;/TD&gt;&lt;TD&gt;0.414109&lt;/TD&gt;&lt;TD&gt;0.344095&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Source DF Type I SS Mean Square F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;F student_nid instructor_nid coursenid_ft &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;68606&lt;/TD&gt;&lt;TD&gt;17514.98225&lt;/TD&gt;&lt;TD&gt;0.25530&lt;/TD&gt;&lt;TD&gt;1.49&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7867&lt;/TD&gt;&lt;TD&gt;10393.42479&lt;/TD&gt;&lt;TD&gt;1.32114&lt;/TD&gt;&lt;TD&gt;7.70&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5506&lt;/TD&gt;&lt;TD&gt;3675.49343&lt;/TD&gt;&lt;TD&gt;0.66754&lt;/TD&gt;&lt;TD&gt;3.89&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the second model, everything remains the same, except that now I absorb courseID rather than having it as dummies:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=derived.fouryear; by student_nid coursenid_ft;run;&lt;BR /&gt;proc glm data=derived.fouryear;&lt;BR /&gt;absorb student_nid coursenid_ft;&lt;BR /&gt;class instructor_nid;&lt;BR /&gt;model second_2yr=instructor_nid/ solution;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the outputs from the second model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV class="c proctitle"&gt;Dependent Variable: second_2yr&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Source DF Sum of Squares Mean Square F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;F Model Error Corrected Total &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;323229&lt;/TD&gt;&lt;TD&gt;72948.94614&lt;/TD&gt;&lt;TD&gt;0.22569&lt;/TD&gt;&lt;TD&gt;0.89&lt;/TD&gt;&lt;TD&gt;0.7788&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;18.49874&lt;/TD&gt;&lt;TD&gt;0.25341&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;323302&lt;/TD&gt;&lt;TD&gt;72967.44488&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;R-Square Coeff Var Root MSE second_2yr&amp;nbsp;Mean &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.999746&lt;/TD&gt;&lt;TD&gt;146.2955&lt;/TD&gt;&lt;TD&gt;0.503396&lt;/TD&gt;&lt;TD&gt;0.344095&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Source DF Type I SS Mean Square F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;F student_nid coursenid_(IN ABOVE) instructor_nid &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;68606&lt;/TD&gt;&lt;TD&gt;17514.98225&lt;/TD&gt;&lt;TD&gt;0.25530&lt;/TD&gt;&lt;TD&gt;1.01&lt;/TD&gt;&lt;TD&gt;0.5041&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;254558&lt;/TD&gt;&lt;TD&gt;55420.96262&lt;/TD&gt;&lt;TD&gt;0.21771&lt;/TD&gt;&lt;TD&gt;0.86&lt;/TD&gt;&lt;TD&gt;0.8402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;TD&gt;13.00126&lt;/TD&gt;&lt;TD&gt;0.20002&lt;/TD&gt;&lt;TD&gt;0.79&lt;/TD&gt;&lt;TD&gt;0.8338&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="branch"&gt;&lt;DIV class="c proctitle"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Aug 2017 00:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388032#M20208</guid>
      <dc:creator>Xudeer</dc:creator>
      <dc:date>2017-08-15T00:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388099#M20214</link>
      <description>&lt;P&gt;You haven't addressed why there are so many degrees of freedom, this seems like an incredibly large number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, from the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_glm_sect009.htm" target="_self"&gt;ABSORB documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Several variables can be specified, in which case each one is assumed to be nested in the preceding variable in the ABSORB statement.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your two models are not equivalent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, from the documentation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When you use the ABSORB statement, the data set (or each BY group, if a &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/statug_glm_sect010.htm" target="_blank"&gt;BY&lt;/A&gt; statement appears) must be sorted by the variables in the ABSORB statement.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 11:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388099#M20214</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-15T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388338#M20235</link>
      <description>&lt;P&gt;Thank you PaigeMiller!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You haven't addressed why there are so many degrees of freedom, this seems like an incredibly large number.&lt;/P&gt;&lt;P&gt;- We have more than 300,000 observations (the data is student by course level transcript records from multiple cohorts of students from an entire four-year public college system)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_glm_sect009.htm" target="_self" rel="nofollow noopener noreferrer"&gt;ABSORB documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Several variables can be specified, in which case each one is assumed to be nested in the preceding variable in the ABSORB statement.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your two models are not equivalent.&lt;/P&gt;&lt;P&gt;- I see. What I would like to do is to absorb studentID and courseID which are not nested within each other. Is there any model that SAS would allow that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, from the documentation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When you use the ABSORB statement, the data set (or each BY group, if a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/statug_glm_sect010.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;BY&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement appears) must be sorted by the variables in the ABSORB statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Yes, I sorted the variable before running the command.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 22:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388338#M20235</guid>
      <dc:creator>Xudeer</dc:creator>
      <dc:date>2017-08-15T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388389#M20236</link>
      <description>&lt;P&gt;I dont think there is any procedure doing what you want. But, theoretically it is possible to&amp;nbsp;"absorb" non-nested variables. As you maybe know, when using the absorb method, data and collumnvectors of the design matrix is projected into the orthogonal space of the design vectors defined by the variable(s) in the absorbstatement. This is quite simple if you have only one class variable in the absorb statement. If there are more variables (non-nested), then this projection becomes more complicated (in terms of calculation time). I experimented with this some years ago, and I didnt see any time efficient way to do it. So that is maybe the reason that it is also not possible with proc glm.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 08:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388389#M20236</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-08-16T08:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when Absorbing two variables using Proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388540#M20245</link>
      <description>&lt;P&gt;Thank you Jacob! For your information, STATA can absorb multiple non-nested variables, but it runs extremely slow for a large dataset such as mine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess for SAS, I will have to only absorb only one variable while adding the other as dummies?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problems-when-Absorbing-two-variables-using-Proc-glm/m-p/388540#M20245</guid>
      <dc:creator>Xudeer</dc:creator>
      <dc:date>2017-08-16T17:18:55Z</dc:date>
    </item>
  </channel>
</rss>

