<?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: Sas proc mixed - Repeated measures random effects in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473533#M24633</link>
    <description>&lt;P&gt;It is important, I'd say critical, to distinguish between fixed effects factors (like your Factors A and B) and random effects factors (like ID). The novice mixed modeler often sees Factor A and ID as being the same thing and serving the same purpose in the specification of the model. But they are not the same thing--which is easy to see when you consider Factor A as having 2 levels, and factor ID as having (2 times the number of replications) levels; if nothing else, factors with different levels are different factors. Clarity in your thinking will lead to clarity in your model. I highly recommend studying&amp;nbsp;&lt;A href="https://www.sas.com/store/books/categories/usage-and-reference/sas-for-mixed-models-second-edition/prodBK_59882_en.html" target="_self"&gt;SAS® for Mixed Models, Second Edition&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile, if your design is a split-plot design, consider this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=data.mydata;
class FactorA FactorB ID;
model DV = FactorA|FactorB;
random ID(FactorA);
lsmeans FactorA|FactorB;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 19:56:53 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2018-06-26T19:56:53Z</dc:date>
    <item>
      <title>Sas proc mixed - Repeated measures random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473079#M24625</link>
      <description>&lt;P&gt;I have a dataset in this format:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 462px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21377i7FB7019F98366F92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Factor A is a between subject factor (with 2 levels - High and Low).&lt;BR /&gt;Factor B is a within subject factor (with 3 levels - High , Moderate and Low).&lt;/P&gt;
&lt;P&gt;I want to run a mixed model with nested random effects factor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code that I am using is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=data.mydata;
class FactorA FactorB;
model DV = FactorA|FactorB;
random FactorB(FactorA) FactorB*FactorA(FactorA);
lsmeans FactorA|FactorB;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The log states: **Estimated G matrix is not positive definite.**&lt;BR /&gt;I also do not get any of the p-values (only a '.' is displayed).&lt;/P&gt;
&lt;P&gt;Furthermore in the output tables, I see that DF = 0. I have a hunch that this is what is symptomatic of the error. But I have been unable to figure out why this is happening. Any leads will be appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 17:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473079#M24625</guid>
      <dc:creator>stanmarciano</dc:creator>
      <dc:date>2018-06-25T17:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc mixed - Repeated measures random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473533#M24633</link>
      <description>&lt;P&gt;It is important, I'd say critical, to distinguish between fixed effects factors (like your Factors A and B) and random effects factors (like ID). The novice mixed modeler often sees Factor A and ID as being the same thing and serving the same purpose in the specification of the model. But they are not the same thing--which is easy to see when you consider Factor A as having 2 levels, and factor ID as having (2 times the number of replications) levels; if nothing else, factors with different levels are different factors. Clarity in your thinking will lead to clarity in your model. I highly recommend studying&amp;nbsp;&lt;A href="https://www.sas.com/store/books/categories/usage-and-reference/sas-for-mixed-models-second-edition/prodBK_59882_en.html" target="_self"&gt;SAS® for Mixed Models, Second Edition&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile, if your design is a split-plot design, consider this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=data.mydata;
class FactorA FactorB ID;
model DV = FactorA|FactorB;
random ID(FactorA);
lsmeans FactorA|FactorB;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473533#M24633</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-06-26T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc mixed - Repeated measures random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473682#M24638</link>
      <description>It does. Thank you so much.</description>
      <pubDate>Wed, 27 Jun 2018 12:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sas-proc-mixed-Repeated-measures-random-effects/m-p/473682#M24638</guid>
      <dc:creator>stanmarciano</dc:creator>
      <dc:date>2018-06-27T12:16:57Z</dc:date>
    </item>
  </channel>
</rss>

