<?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: Split plot design repeated in multiple locations and multiple years in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163408#M8530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that those are the random effects.&amp;nbsp; Check the documentation for the type= option, where a short example of height and weight as two kinds of measures and year, so that the measures are UN and year is CS or AR(1).&amp;nbsp; In this case, to get heterogeneity you would have to use UN for year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&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, 02 Apr 2014 19:56:51 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-04-02T19:56:51Z</dc:date>
    <item>
      <title>Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163405#M8527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have the following problem:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;A study was conducted in 2 locations (1, 2) for 2 years (2012, 2013). In each location, we have 4 blocks . Within each block, we have split plot design with repeated measures.&amp;nbsp; Main plot is gypsum treatments, sub plot is different peanut cultivar.&amp;nbsp; Soil samples were taken from each sub plot at planting, mid bloom and harvest. The response is soil Ca content.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Objectives:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. Whether there is difference between locations or years? If not, then I can pool my data through locations and years.&lt;/P&gt;&lt;P&gt;2. Whether there is difference between treatments?&lt;/P&gt;&lt;P&gt;3. Whether there is difference between sampling times?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my SAS code, I don't know if it's correct. If I want to test the year&amp;nbsp; effect, I have treat year as a repeated factor. But I've already had repeated measures within each block (timing), can I use two repeated statements at the same time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed;&lt;/P&gt;&lt;P&gt;class year location block treatment cultivar timing;&lt;/P&gt;&lt;P&gt;model Ca=year| location| treatment| cultivar| timing/ddfm=kr;&lt;/P&gt;&lt;P&gt;random block block(location) treatment*block(location);&lt;/P&gt;&lt;P&gt;repeated timing/subject=block(treatment*cultivar) type=csh;&lt;/P&gt;&lt;P&gt;repeated year/subject=location(block*treatment*cultivar) type=csh;&lt;/P&gt;&lt;P&gt;lsmeans year| location| treatment| cultivar| timing/diff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 16:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163405#M8527</guid>
      <dc:creator>Dumbo</dc:creator>
      <dc:date>2014-04-01T16:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163406#M8528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With only two values for year, one way of addressing the doubly repeated nature would be to fit year as a G-side repeated effect;&amp;nbsp; Just change the last statement from a repeated statement to a random statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer this to the Kronecker product method, because of the heterogeneity.&amp;nbsp; If you go that way, it would be only one repeated statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repeated year timing / type= &lt;A href="mailto:UN@CS"&gt;UN@CS&lt;/A&gt; subject=location(block*treatment*cultivar);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way to get heterogeneity of variance with this approach would be to fit &lt;A href="mailto:UN@UN"&gt;UN@UN&lt;/A&gt;, and whether that would work depends on how many levels of timing you have, and how many total observations are available.&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, 02 Apr 2014 15:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163406#M8528</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-04-02T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163407#M8529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Steve!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Kronecker product&lt;/SPAN&gt; method, but I will try to figure out.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The random factors are block, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;block(location) and treatment*block(location), am I correct ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 19:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163407#M8529</guid>
      <dc:creator>Dumbo</dc:creator>
      <dc:date>2014-04-02T19:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163408#M8530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that those are the random effects.&amp;nbsp; Check the documentation for the type= option, where a short example of height and weight as two kinds of measures and year, so that the measures are UN and year is CS or AR(1).&amp;nbsp; In this case, to get heterogeneity you would have to use UN for year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&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, 02 Apr 2014 19:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163408#M8530</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-04-02T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163409#M8531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran the code, but got two&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: Estimated G matrix is not positive definite.&lt;/P&gt;&lt;P&gt;NOTE: Asymptotic variance matrix of covariance parameter estimates has been found to be singular and a generalized inverse was used. Covariance parameters with zero variance do not contribute to degrees of freedom computed by &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DDFM=KENWARDROGER.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I trust the results despite of these notes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163409#M8531</guid>
      <dc:creator>Dumbo</dc:creator>
      <dc:date>2014-04-03T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163410#M8532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I actually believe that there is a location effect, since location 2 has a higher fertility and regular irrigation whereas location 1 does not.&amp;nbsp; Therefore I tried to test the year effect on each location. Here is my SAS code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed;&lt;/P&gt;&lt;P&gt;class year block treatment cultivar timing;&lt;/P&gt;&lt;P&gt;model M1_Ca= year| treatment| cultivar| timing/ddfm=kr;&lt;/P&gt;&lt;P&gt;random intercept treatment/subject=block;&lt;/P&gt;&lt;P&gt;repeated year timing/subject=block(treatment*cultivar) type=un@cs;&lt;/P&gt;&lt;P&gt;lsmeans year| treatment| cultivar| timing/diff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the random factor is block and block*treatment.&amp;nbsp; I am not sure if it's correct to use UN@CS covariance structure. Since the repeated factor "timing" was not equally spaced, shold I use sp(pow)?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I ran the above code, and found year effect is not significant.&amp;nbsp; So I think I can then treat the year as a random effect and ran the test again.&amp;nbsp; Here is my SAS code with year being a random effect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc mixed;&lt;/P&gt;&lt;P&gt;class year block treatment cultivar timing;&lt;/P&gt;&lt;P&gt;model Ca=treatment| cultivar| timing/ddfm=kr;&lt;/P&gt;&lt;P&gt;random year block year*block year*treatment block*treatment year*treatment(block);&lt;/P&gt;&lt;P&gt;repeated timing/subject=year*block*treatment*cultivar type=sp(pow);&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I correct with the random effects and the covariance structure?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 18:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163410#M8532</guid>
      <dc:creator>Dumbo</dc:creator>
      <dc:date>2014-04-03T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Split plot design repeated in multiple locations and multiple years</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163411#M8533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOTE: Estimated G matrix is not positive definite.&lt;/P&gt;&lt;P&gt;NOTE: Asymptotic variance matrix of covariance parameter estimates has been found to be singular and a generalized inverse was used. Covariance parameters with zero variance do not contribute to degrees of freedom computed by &lt;SPAN style="font-size: 10pt;"&gt;DDFM=KENWARDROGER.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These notes are not show stoppers in any way.&amp;nbsp; The first says that there are more random effects in the model than can be fit with the data, while the second says, OK, now let's proceed with the analysis, and correct for those components whose estimates were zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the latter two analyses, I have to ask "Why"?&amp;nbsp; Why do subset analysis in the first case, when you already have accommodated any difference in fertility due to location AND made it applicable to locations beyond the ones fit in your first analysis.&amp;nbsp; Now if there is substantial heterogeneity in variance due to location, then that should be addressed, but probably not by a subset analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the approach of treating year as a random effect, and having only timing as a repeated effect with the sp(pow) error structure.&amp;nbsp; However, I would still include location as a random effect--it is a design factor, and dropping it to do subset analysis reduces power, while not including it ignores a design factor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Split-plot-design-repeated-in-multiple-locations-and-multiple/m-p/163411#M8533</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-04-04T13:21:15Z</dc:date>
    </item>
  </channel>
</rss>

