<?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: two-way MANOVA with nested random effect in proc glm - what error terms should I be testing over in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325155#M17177</link>
    <description>Thanks very much Steve - I’d overlooked this as a split-plot, so how I’ve done it is definitely incorrect. As a student I once did a split-plot in GLM but my instructor showed us how to do it ‘by-hand’ to get the correct F-ratios.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I’ll have a look at the GLIMMIX split-plot example you gave but will more likely need to use MIXED as the traits are from a Gaussian distribution (-∞ to ∞). Any further advice for doing a split-plot correctly in MIXED would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Jan 2017 00:17:21 GMT</pubDate>
    <dc:creator>JCU-SAS</dc:creator>
    <dc:date>2017-01-17T00:17:21Z</dc:date>
    <item>
      <title>two-way MANOVA with nested random effect in proc glm - what error terms should I be testing over?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/324487#M17139</link>
      <description>&lt;P&gt;I am examining multiple traits for the effects of various treatments, multiple genotypes, and their interaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore I have two fixed factors:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;treatment (4 levels)&lt;/LI&gt;&lt;LI&gt;genotype (12 levels)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, each 'genotype' was kept in 4-5 different 'containers', so there is a nested random effect:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;container(genotype)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;[The containers are numbered uniquely in the datasheet.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore my model is:&lt;BR /&gt;trait1 trait2 trait3 trait4 ~ treatment genotype treatment*genotype container(genotype),&lt;BR /&gt;where 'treatment' and 'genotype' are fixed, and 'container' is random and nested within 'genotype'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in significance testing the two fixed factors and their interaction.&lt;/P&gt;&lt;P&gt;However, in order to create the correct hypothesis test for each effect, I need to be careful to specify the correct MS divisor for the F ratio given the nested random factor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the 'genotype' fixed effect I am sure the correct MS term is the 'container(genotype)';&lt;BR /&gt;for the 'treatment' fixed effect I think the correct MS term is the residual MS error but am not entirely sure;&lt;BR /&gt;but for the interaction term I am not at all sure what MS term I should be using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc glm in SAS v9.3 and this is what I have so far:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc glm data=dataset;
class treatment genotype container ;
model trait1 trait2 trait3 trait4 = treatment|genotype container(genotype) / ss3 nouni;
random container(genotype) / test ;
manova H=treatment;
manova H=genotype E=container(genotype);
manova H=treatment*genotype E=?;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help would be greatly appreciated and doesn't have to relate to MANOVA.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 09:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/324487#M17139</guid>
      <dc:creator>JCU-SAS</dc:creator>
      <dc:date>2017-01-13T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: two-way MANOVA with nested random effect in proc glm - what error terms should I be testing over</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325124#M17171</link>
      <description>&lt;P&gt;Ouch. &amp;nbsp;Since PROC GLM does not correctly calculate standard errors for split plot models (which is what this is), you may want to consider using PROC GLIMMIX. &amp;nbsp;Example 45.5 Joint Modeling of Binary and Count Data is a place to get started. &amp;nbsp;It would help to know what distribution(s) your trait variables&amp;nbsp;came from. &amp;nbsp;Work through that example carefully, and I think you will see how to apply it to your situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 20:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325124#M17171</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2017-01-16T20:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: two-way MANOVA with nested random effect in proc glm - what error terms should I be testing over</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325155#M17177</link>
      <description>Thanks very much Steve - I’d overlooked this as a split-plot, so how I’ve done it is definitely incorrect. As a student I once did a split-plot in GLM but my instructor showed us how to do it ‘by-hand’ to get the correct F-ratios.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I’ll have a look at the GLIMMIX split-plot example you gave but will more likely need to use MIXED as the traits are from a Gaussian distribution (-∞ to ∞). Any further advice for doing a split-plot correctly in MIXED would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2017 00:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325155#M17177</guid>
      <dc:creator>JCU-SAS</dc:creator>
      <dc:date>2017-01-17T00:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: two-way MANOVA with nested random effect in proc glm - what error terms should I be testing over</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325159#M17178</link>
      <description>&lt;P&gt;For a short illustration of using the MIXED procedure to do MANOVA, see&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sastraining/2011/02/02/the-punchline-manova-or-a-mixed-model/" target="_self"&gt;http://blogs.sas.com/content/sastraining/2011/02/02/the-punchline-manova-or-a-mixed-model/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The column compares GLM and MIXED, and also notes the use of a mixture of distributions in GLIMMIX like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;suggested, which would be very handy if different traits followed different distributions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: You can certainly use GLIMMIX for data that follow a normal distribution.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 01:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-way-MANOVA-with-nested-random-effect-in-proc-glm-what-error/m-p/325159#M17178</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-01-17T01:19:37Z</dc:date>
    </item>
  </channel>
</rss>

