<?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: Saving Residuals in Proc Mixed in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72005#M8234</link>
    <description>It works! Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
sliu</description>
    <pubDate>Fri, 18 Sep 2009 14:45:23 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-09-18T14:45:23Z</dc:date>
    <item>
      <title>Saving Residuals in Proc Mixed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72003#M8232</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I am using proc mixed to analyse multilevel data. For a simple example&lt;BR /&gt;
&lt;BR /&gt;
data survey;&lt;BR /&gt;
input group id money satisfaction;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 1 5 3&lt;BR /&gt;
1 2 4 2&lt;BR /&gt;
1 3 9 4&lt;BR /&gt;
2 1 2 6&lt;BR /&gt;
2 2 5 4&lt;BR /&gt;
2 3 7 4&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data=survey covtest noclprint noitprint noinfo; class Group;&lt;BR /&gt;
model satisfaction = money/ DDFM=bw solution CL; Random intercept/ sub=group;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
When I use ods listing to see what output I can get, there were only "covariance parameter estimates", "fit statistics", and "solution for fixed effects". However, I am interested in the residuals at both levels of analysis (group-level and individual-level). &lt;BR /&gt;
&lt;BR /&gt;
How can I save those?&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your help!&lt;BR /&gt;
&lt;BR /&gt;
sliu</description>
      <pubDate>Wed, 16 Sep 2009 20:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72003#M8232</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-16T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Residuals in Proc Mixed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72004#M8233</link>
      <description>You can add options to get the residuals.&lt;BR /&gt;
&lt;BR /&gt;
To the MODEL statement add the RESIDUAL and OUTP= options to create a SAS dataset with the residuals for each individual.&lt;BR /&gt;
&lt;BR /&gt;
To the RANDOM statement add the SOLUTION option. This will print a table of the random effects for each group which you can capture with ODS. The ODS name for the table is SOLUTIONR&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data=survey covtest noclprint noitprint noinfo; &lt;BR /&gt;
class Group;&lt;BR /&gt;
model satisfaction = money/ DDFM=bw solution CL residual outp=predresid; &lt;BR /&gt;
Random intercept/ sub=group solution;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 17 Sep 2009 19:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72004#M8233</guid>
      <dc:creator>sfleming</dc:creator>
      <dc:date>2009-09-17T19:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Residuals in Proc Mixed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72005#M8234</link>
      <description>It works! Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
sliu</description>
      <pubDate>Fri, 18 Sep 2009 14:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/72005#M8234</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-18T14:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Residuals in Proc Mixed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/826985#M25882</link>
      <description>&lt;P&gt;How can I view the residual table generated?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Saving-Residuals-in-Proc-Mixed/m-p/826985#M25882</guid>
      <dc:creator>daaesteban</dc:creator>
      <dc:date>2022-08-03T19:37:01Z</dc:date>
    </item>
  </channel>
</rss>

