<?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 Random Syntax in Mixed Models in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13709#M254</link>
    <description>Let's say I'm working on a model for human height. There's two groups, one eating a control diet and another eating a supplemented diet. The heights of the individuals are tracked as they age (longitudinal). I use proc mixed with something like&lt;BR /&gt;
&lt;BR /&gt;
height = age diet;&lt;BR /&gt;
random personID;&lt;BR /&gt;
&lt;BR /&gt;
Is this significantly from &lt;BR /&gt;
&lt;BR /&gt;
height = age diet;&lt;BR /&gt;
random intercept age diet /sub=personID;&lt;BR /&gt;
&lt;BR /&gt;
Also can anyone give me insight as to when it would be better to model this as repeated measurements or as random sampling from a population?</description>
    <pubDate>Tue, 14 Jun 2011 20:42:08 GMT</pubDate>
    <dc:creator>yiferic</dc:creator>
    <dc:date>2011-06-14T20:42:08Z</dc:date>
    <item>
      <title>Random Syntax in Mixed Models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13709#M254</link>
      <description>Let's say I'm working on a model for human height. There's two groups, one eating a control diet and another eating a supplemented diet. The heights of the individuals are tracked as they age (longitudinal). I use proc mixed with something like&lt;BR /&gt;
&lt;BR /&gt;
height = age diet;&lt;BR /&gt;
random personID;&lt;BR /&gt;
&lt;BR /&gt;
Is this significantly from &lt;BR /&gt;
&lt;BR /&gt;
height = age diet;&lt;BR /&gt;
random intercept age diet /sub=personID;&lt;BR /&gt;
&lt;BR /&gt;
Also can anyone give me insight as to when it would be better to model this as repeated measurements or as random sampling from a population?</description>
      <pubDate>Tue, 14 Jun 2011 20:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13709#M254</guid>
      <dc:creator>yiferic</dc:creator>
      <dc:date>2011-06-14T20:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Random Syntax in Mixed Models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13710#M255</link>
      <description>I'm not sure what the question is.  The model which specifies&lt;BR /&gt;
&lt;BR /&gt;
random personID;&lt;BR /&gt;
&lt;BR /&gt;
fits a model with a random intercept term, whereas the model which specifies&lt;BR /&gt;
&lt;BR /&gt;
random intercept age diet / sub=personID;&lt;BR /&gt;
&lt;BR /&gt;
fits a model in which each person has their own age slope and their own diet slope.  Are you wondering if the model with person-specific age and diet slope effects produces a model which has better fit to the data, then you could use a likelihood ratio test.&lt;BR /&gt;
&lt;BR /&gt;
Note that this second model would only seem to be valid if each person was observed on multiple diets.  If each person receives only a single diet, then there would be no data that would allow you to compute a person-specific diet slope effect.  Also, if each person receives only a single diet, then the subject effect should be nested within diet.</description>
      <pubDate>Tue, 14 Jun 2011 22:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13710#M255</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2011-06-14T22:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Random Syntax in Mixed Models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13711#M256</link>
      <description>Aahh, not thinking straight,&lt;BR /&gt;
&lt;BR /&gt;
I meant to ask is &lt;BR /&gt;
&lt;BR /&gt;
random personID   the same as &lt;BR /&gt;
random intercept sub=personID;&lt;BR /&gt;
&lt;BR /&gt;
Thanks Dale</description>
      <pubDate>Wed, 15 Jun 2011 15:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13711#M256</guid>
      <dc:creator>yiferic</dc:creator>
      <dc:date>2011-06-15T15:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Random Syntax in Mixed Models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13712#M257</link>
      <description>Syntax with&lt;BR /&gt;
&lt;BR /&gt;
random personID;&lt;BR /&gt;
&lt;BR /&gt;
or&lt;BR /&gt;
&lt;BR /&gt;
random intercept / sub=personID;&lt;BR /&gt;
&lt;BR /&gt;
should produce the same log-likelihood and identical random effect variance estimates.  I would note that while the results should be identical, the two models are parameterized differently.  Because the models are parameterized differently, round-off errors could conceivably produce different results for the alternate syntaxes.  If you were to observe any difference in results, such differences should be quite small.&lt;BR /&gt;
&lt;BR /&gt;
The second form in which you use a subject specification is generally more efficient in use of computer resources.  I typically recommend use of the "random intercept / sub=personID;" form.</description>
      <pubDate>Wed, 15 Jun 2011 18:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13712#M257</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2011-06-15T18:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Random Syntax in Mixed Models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13713#M258</link>
      <description>Thanks Dale!</description>
      <pubDate>Thu, 16 Jun 2011 19:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Random-Syntax-in-Mixed-Models/m-p/13713#M258</guid>
      <dc:creator>yiferic</dc:creator>
      <dc:date>2011-06-16T19:10:16Z</dc:date>
    </item>
  </channel>
</rss>

