<?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 Nested Models and PROC Mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203817#M10936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-family: 'times new roman', 'new york', times, serif;"&gt;I am running a statistical analysis for an experiment where subjects were randomly selected.&amp;nbsp; A strength measurement was taken at the same two locations (location) for each participant. The strength measurement was taken twice with two different methods (method). So there are 4 measurements for each participant.&amp;nbsp; We would like to determine if gender impacts the strength.&amp;nbsp; To do this we ran the following model:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-family: 'times new roman', 'new york', times, serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=set;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class IDnum Sex method location;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model strength =&amp;nbsp; Sex | method | location;&lt;/P&gt;&lt;P&gt;&amp;nbsp; random IDnum(Sex);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;The nested effect (IDnum(sex)) is considered to be random. But does this take into account the variability due to individuals themselves? Would I need to modify the random statement as follows:&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; random IDnum(Sex) IDnum;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 15:57:20 GMT</pubDate>
    <dc:creator>MayTrix</dc:creator>
    <dc:date>2015-07-15T15:57:20Z</dc:date>
    <item>
      <title>Nested Models and PROC Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203817#M10936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-family: 'times new roman', 'new york', times, serif;"&gt;I am running a statistical analysis for an experiment where subjects were randomly selected.&amp;nbsp; A strength measurement was taken at the same two locations (location) for each participant. The strength measurement was taken twice with two different methods (method). So there are 4 measurements for each participant.&amp;nbsp; We would like to determine if gender impacts the strength.&amp;nbsp; To do this we ran the following model:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-family: 'times new roman', 'new york', times, serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=set;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class IDnum Sex method location;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model strength =&amp;nbsp; Sex | method | location;&lt;/P&gt;&lt;P&gt;&amp;nbsp; random IDnum(Sex);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;The nested effect (IDnum(sex)) is considered to be random. But does this take into account the variability due to individuals themselves? Would I need to modify the random statement as follows:&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; random IDnum(Sex) IDnum;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203817#M10936</guid>
      <dc:creator>MayTrix</dc:creator>
      <dc:date>2015-07-15T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Models and PROC Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203818#M10937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This random term is the residual error for your design, and doesn't need to be explicitly stated in the random statement.&amp;nbsp; Now, if you consider location to be a repeated factor (which I would), then perhaps the following code would be appropriate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=set;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class IDnum Sex method location;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model strength =&amp;nbsp; Sex | method | location;&lt;/P&gt;&lt;P&gt;repeated location/subject=IDnum(sex);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This syntax for IDnum(sex) is necessary only if there are duplicate IDnum's that might be distinguished by sex (for instance, 101 in males, and 101 in females).&amp;nbsp; If IDnum is unique across sex, the syntax will work, but is not necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement&lt;/P&gt;&lt;P&gt;random IDnum(Sex) IDnum;&lt;/P&gt;&lt;P&gt;will almost surely lead to a message that the 'G matrix is not positive definite' as it is redundant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203818#M10937</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-15T18:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Models and PROC Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203819#M10938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Steve for responding to my question. It was very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 16:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Nested-Models-and-PROC-Mixed/m-p/203819#M10938</guid>
      <dc:creator>MayTrix</dc:creator>
      <dc:date>2015-07-17T16:15:34Z</dc:date>
    </item>
  </channel>
</rss>

