<?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 code  for Latin square design including repeated measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286865#M15215</link>
    <description>&lt;P&gt;Thank you very much Steeve for your statistical model proposal! I think that it could be adapted to my data and I will test it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pauline&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2016 13:48:56 GMT</pubDate>
    <dc:creator>Pauline_Agrosup</dc:creator>
    <dc:date>2016-07-25T13:48:56Z</dc:date>
    <item>
      <title>SAS code  for Latin square design including repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286118#M15132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please could someone help me defining the most appropriate SAS code (SAS 9.3) for my statistical model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two groups of 3 animals were involved in a Latin square design comprising two periods of 7 weeks.. During the ﬁrst period group 1 received treatment 1 and group 2 received treatment 2, and inversely in period 2. During each period, we measured the same parameters on all animals at different days (6 days of measurement within the 7 weeks), to follow the evolution of the parameters within each treatment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest this SAS model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Class &amp;nbsp;animal period treatment day;&lt;/P&gt;&lt;P&gt;Model &amp;nbsp;&amp;nbsp;parameter = period treatment day day*treatment day*period day*treatment*period;&lt;/P&gt;&lt;P&gt;Repeated &amp;nbsp;day /sub=animal*period type=cs ;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one of my colleagues suggest another model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Class &amp;nbsp;animal period treatment day;&lt;/P&gt;&lt;P&gt;Model &amp;nbsp;&amp;nbsp;parameter = period treatment day day*treatment day*period day*treatment*period;&lt;/P&gt;&lt;P&gt;Repeated &amp;nbsp;day /sub=animal*period;&lt;/P&gt;&lt;P&gt;Random &amp;nbsp;animal animal*period / type = cs;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if these two models are correct, and which one is the most appropriate.&lt;/P&gt;&lt;P&gt;In the model, should I test the period effect and the interactions with the period?&lt;/P&gt;&lt;P&gt;I am also asking about the random statement in the model: is it useful or not? Why?&lt;/P&gt;&lt;P&gt;The type of covariance structure must appear in the repeated or random statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any help that you could offer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pauline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286118#M15132</guid>
      <dc:creator>Pauline_Agrosup</dc:creator>
      <dc:date>2016-07-21T13:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code  for Latin square design including repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286199#M15138</link>
      <description>&lt;P&gt;I prefer the second model, if you add type=ar(1) to the repeated statement, to model the correlation&amp;nbsp;over time, within period, and remove type=cs from the random statement. &amp;nbsp;You could leave this type= option&amp;nbsp;in, but this is really a split-plot in time with the treatments arranged in a Latin square design for the main plot, so you are really only concerned with the variance component associated with these effects (animal and animal*period).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 18:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286199#M15138</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-21T18:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code  for Latin square design including repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286865#M15215</link>
      <description>&lt;P&gt;Thank you very much Steeve for your statistical model proposal! I think that it could be adapted to my data and I will test it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pauline&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 13:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-code-for-Latin-square-design-including-repeated-measures/m-p/286865#M15215</guid>
      <dc:creator>Pauline_Agrosup</dc:creator>
      <dc:date>2016-07-25T13:48:56Z</dc:date>
    </item>
  </channel>
</rss>

