<?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: proc mixed 3-way overall interaction p-value in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/343302#M18053</link>
    <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Here is a contrast statement that works:&lt;/FONT&gt; (you can write the statement for other time points in a similar fashion)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mixed data=growth noclprint order=formatted covtest noitprint method=reml;&lt;BR /&gt;class group pt strata time(ref="1");&lt;BR /&gt;model score = baseline_score group time time*group strata group*strata time*strata time*group*strata/solution ddfm=bw notest;&lt;BR /&gt;random pt /vcorr;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;contrast 'pvalue at 1 month' &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;group*strata 1 -1 -1 1 time*group*strata 1 0 0 0 0 0 -1 0 0 0 0 0 -1 0 0 0 0 0 1 0 0 0 0 0;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lsmeans time*group*strata/pdiff cl ;&lt;/P&gt;
&lt;P&gt;ods output&amp;nbsp;Contrasts=cont_(keep=label probf)&lt;/P&gt;
&lt;P&gt;SolutionF=est_(keep=effect estimate stderr probt)&lt;BR /&gt;LSMeans=lsm_(keep=effect group strata time estimate lower upper)&lt;BR /&gt;Diffs=diff_(keep=effect group strata _group _strata time _time estimate lower upper probt);&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 14:51:30 GMT</pubDate>
    <dc:creator>kc</dc:creator>
    <dc:date>2017-03-22T14:51:30Z</dc:date>
    <item>
      <title>proc mixed 3-way overall interaction p-value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/341700#M17966</link>
      <description>&lt;P&gt;I am running the following model to run a repeated measures ancova. the data has 2 treatment groups, 2 stratification levels and 5 time points (baseline, 1m, 6m, 12m, 24m). The dependent variable is the score at post-baseline time points (1,6,12,24 months).&lt;/P&gt;
&lt;P&gt;My question is, how do I get an overall p-value for the 3-way interaction at each post-baseline timepoint? I am not sure of how to write a contrast statement to accomplish this? Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mixed data=growth noclprint order=formatted covtest noitprint method=reml;&lt;BR /&gt;class group pt strata time(ref="1");&lt;BR /&gt;model score = baseline_score group time time*group strata group*strata time*strata time*group*strata/solution ddfm=bw notest;&lt;BR /&gt;random pt /vcorr;&lt;/P&gt;
&lt;P&gt;lsmeans time*group*strata/pdiff cl ;&lt;/P&gt;
&lt;P&gt;ods output SolutionF=est_(keep=effect estimate stderr probt)&lt;BR /&gt; LSMeans=lsm_(keep=effect group strata time estimate lower upper)&lt;BR /&gt; Diffs=diff_(keep=effect group strata _group _strata time _time estimate lower upper probt);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/341700#M17966</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2017-03-16T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed 3-way overall interaction p-value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/341820#M17968</link>
      <description>&lt;P&gt;Do you mean the interaction of group and strata at each value of time? In other words, a two-way interaction rather than three-way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, then you can do this using the LSMESTIMATE statement, with the AT option to specify an appropriate value for &lt;EM&gt;baseline_score &lt;/EM&gt;at which to estimate the lsmeans. It's worth taking the time to figure out how to use the nonpositional syntax for LSMESTIMATE. See&lt;/P&gt;
&lt;P&gt;&lt;A title="CONTRAST and ESTIMATE statements made easy: the LSMESTIMATE statement" href="https://support.sas.com/resources/papers/proceedings11/351-2011.pdf" target="_self"&gt;https://support.sas.com/resources/papers/proceedings11/351-2011.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 00:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/341820#M17968</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-03-17T00:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed 3-way overall interaction p-value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/343302#M18053</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Here is a contrast statement that works:&lt;/FONT&gt; (you can write the statement for other time points in a similar fashion)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mixed data=growth noclprint order=formatted covtest noitprint method=reml;&lt;BR /&gt;class group pt strata time(ref="1");&lt;BR /&gt;model score = baseline_score group time time*group strata group*strata time*strata time*group*strata/solution ddfm=bw notest;&lt;BR /&gt;random pt /vcorr;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;contrast 'pvalue at 1 month' &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;group*strata 1 -1 -1 1 time*group*strata 1 0 0 0 0 0 -1 0 0 0 0 0 -1 0 0 0 0 0 1 0 0 0 0 0;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lsmeans time*group*strata/pdiff cl ;&lt;/P&gt;
&lt;P&gt;ods output&amp;nbsp;Contrasts=cont_(keep=label probf)&lt;/P&gt;
&lt;P&gt;SolutionF=est_(keep=effect estimate stderr probt)&lt;BR /&gt;LSMeans=lsm_(keep=effect group strata time estimate lower upper)&lt;BR /&gt;Diffs=diff_(keep=effect group strata _group _strata time _time estimate lower upper probt);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 14:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-3-way-overall-interaction-p-value/m-p/343302#M18053</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2017-03-22T14:51:30Z</dc:date>
    </item>
  </channel>
</rss>

