<?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: Test for SigDiff by Date in Proc MIXED repeated measures in SAS University in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377567#M19808</link>
    <description>&lt;P&gt;I assume that is true as well. The question then becomes how to correctly write the error term(s) for including Date? Or does Proc MIXED do that automatically?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 20:05:02 GMT</pubDate>
    <dc:creator>AaronJ</dc:creator>
    <dc:date>2017-07-19T20:05:02Z</dc:date>
    <item>
      <title>Test for SigDiff by Date in Proc MIXED repeated measures in SAS University</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377136#M19795</link>
      <description>&lt;P&gt;I have a code written for a split-plot analysis with repeated measures written with Proc MIXED. However, I have not been able to write a code that will deliver results for whether dates are significantly different from each other. LS Means commands do this quite nicely, but i haven't been able to write an LS Means code that produces an output. 4 plots in 4 Blocks (N=4), and the plot is what the repeated measures are performed on (n=16). PlotID was written to give each plot a unique ID. Compound Symmetry was determined to be the best covariance structure for the data. How do i write code to test if&amp;nbsp;the mean logN2O values differ by Date?&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;ODS graphics on ;&lt;BR /&gt;proc mixed data=AllEvents covtest;&lt;BR /&gt;Class Block Fert Nfix Date PlotID;&lt;BR /&gt;Model logN2O=&amp;nbsp;Fert Nfix Fert*Nfix / s;&lt;BR /&gt;Random Block Block*Fert;&lt;BR /&gt;Repeated / Type=CS subject=plotID r;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 20:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377136#M19795</guid>
      <dc:creator>AaronJ</dc:creator>
      <dc:date>2017-07-18T20:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Test for SigDiff by Date in Proc MIXED repeated measures in SAS University</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377559#M19807</link>
      <description>&lt;P&gt;If you want to compare mean logN2O among dates, the DATE factor must be in the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377559#M19807</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-19T19:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Test for SigDiff by Date in Proc MIXED repeated measures in SAS University</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377567#M19808</link>
      <description>&lt;P&gt;I assume that is true as well. The question then becomes how to correctly write the error term(s) for including Date? Or does Proc MIXED do that automatically?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377567#M19808</guid>
      <dc:creator>AaronJ</dc:creator>
      <dc:date>2017-07-19T20:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Test for SigDiff by Date in Proc MIXED repeated measures in SAS University</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377588#M19809</link>
      <description>&lt;P&gt;The design structure of your study is not totally clear to me. If levels of &lt;EM&gt;both&lt;/EM&gt; FERT and NFIX are assigned randomly to plots within blocks, then something like this might be appropriate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=AllEvents covtest;
  class block fert nfix date plotid;
  model logN2O= fert|nfix|date / s;
  random block;&lt;BR /&gt;  *random block*fert*nfix; /* deliberately omitted for type=cs */
  repeated date / subject=block*fert*nfix type=cs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that block*fert*nfix identifies the same levels of a random effects factor as does plotid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A title="Modelling covariance structure in the analysis of repeated measures data" href="http://onlinelibrary.wiley.com/doi/10.1002/1097-0258(20000715)19:13%3C1793::AID-SIM482%3E3.0.CO;2-Q/abstract" target="_self"&gt;http://onlinelibrary.wiley.com/doi/10.1002/1097-0258(20000715)19:13%3C1793::AID-SIM482%3E3.0.CO;2-Q/abstract&lt;/A&gt;&amp;nbsp;for a discussion of when &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random block*fert*nfix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;would be included depending on covariance structure type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the SAS documentation for the REPEATED statement in MIXED for details about using "repeated date / subject=..." rather than "repeated / subject=...".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-SigDiff-by-Date-in-Proc-MIXED-repeated-measures-in-SAS/m-p/377588#M19809</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-19T20:54:17Z</dc:date>
    </item>
  </channel>
</rss>

