<?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 How to output individual slopes using a proc mixed model with random effects? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570916#M12054</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I want to compare slope of change for a couple variables and thus am looking to output individuals slopes for a few variables and merge the data sets. However I have had no luck finding how to output individual persons slopes from a proc mixed model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using a tall data set&amp;nbsp;with about 10 observations for each person. The code I am using is like so, and to this I am hoping to add an "output out = slope" type statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;proc mixed data = ExampleData method=ml;&lt;BR /&gt;class Person;&lt;BR /&gt;model DV = IV&amp;nbsp; ;&lt;BR /&gt;random intercept week /type=un subject=Person;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 11:19:55 GMT</pubDate>
    <dc:creator>MoroccoMole</dc:creator>
    <dc:date>2019-07-03T11:19:55Z</dc:date>
    <item>
      <title>How to output individual slopes using a proc mixed model with random effects?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570916#M12054</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to compare slope of change for a couple variables and thus am looking to output individuals slopes for a few variables and merge the data sets. However I have had no luck finding how to output individual persons slopes from a proc mixed model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using a tall data set&amp;nbsp;with about 10 observations for each person. The code I am using is like so, and to this I am hoping to add an "output out = slope" type statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;proc mixed data = ExampleData method=ml;&lt;BR /&gt;class Person;&lt;BR /&gt;model DV = IV&amp;nbsp; ;&lt;BR /&gt;random intercept week /type=un subject=Person;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570916#M12054</guid>
      <dc:creator>MoroccoMole</dc:creator>
      <dc:date>2019-07-03T11:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to output individual slopes using a proc mixed model with random effects?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570920#M12055</link>
      <description>&lt;P&gt;You need to use ODS OUTPUT and the SOLUTION option of the MODEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output solutionf=slopes;
proc mixed data=sashelp.class;
    class sex;
    model weight=height sex/solution;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570920#M12055</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-03T11:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to output individual slopes using a proc mixed model with random effects?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570941#M12060</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to be producing a data set with a single estimate for intercept and slope. What I am aiming to do is get those estimates for each person in the data set. I am trying to produce a data set that has one row for each ID number and an estimate for slope for each ID number.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 12:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570941#M12060</guid>
      <dc:creator>MoroccoMole</dc:creator>
      <dc:date>2019-07-03T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to output individual slopes using a proc mixed model with random effects?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570972#M12064</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/280295"&gt;@MoroccoMole&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seems to be producing a data set with a single estimate for intercept and slope. What I am aiming to do is get those estimates for each person in the data set. I am trying to produce a data set that has one row for each ID number and an estimate for slope for each ID number.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not clear to me that you can get individual slopes for each person. Are they output from PROC MIXED when you run your code? If it is possible (you can do the testing) then you would need&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS OUTPUT SOLUTIONR=slopes;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/570972#M12064</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-03T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to output individual slopes using a proc mixed model with random effects?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/964446#M43269</link>
      <description>&lt;P&gt;hello, were you able to solve this query?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 16:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-output-individual-slopes-using-a-proc-mixed-model-with/m-p/964446#M43269</guid>
      <dc:creator>lgutm18</dc:creator>
      <dc:date>2025-04-16T16:01:29Z</dc:date>
    </item>
  </channel>
</rss>

