<?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: Between group differences using mixed model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735508#M35745</link>
    <description>&lt;P&gt;Could you show the model you are currently using?&amp;nbsp; I believe all of your questions can be resolved either by 'slicing' the LSMEANS or by writing appropriate LSMESTIMATE statements.&amp;nbsp; It just would help to know what you are fitting before trying to write any code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 12:24:44 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-04-20T12:24:44Z</dc:date>
    <item>
      <title>Between group differences using mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735386#M35744</link>
      <description>&lt;P&gt;Hello. I am running mixed models. The overall goal is to determine whether the changes in the outcomes differ by group and race&lt;EM&gt;.&lt;/EM&gt; There are two racial groups, three treatment groups, one control group, and repeated measures. I have many estimate statements in the model. I am trying to determine whether there are differences in the means of the outcomes across the treatment groups and race. How do I determine the between-group differences (see below)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples:&amp;nbsp;&lt;/P&gt;&lt;P&gt;treatment 1 vs control&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 2&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 3&lt;/P&gt;&lt;P&gt;treatment 2 vs treatment 3&lt;/P&gt;&lt;P&gt;So on and so forth.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;treatment 1 vs control (race 1)&lt;/P&gt;&lt;P&gt;treatment 1 vs control (race 2)&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 2 (race 1)&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 2 (race 2)&lt;/P&gt;&lt;P&gt;So and so forth.........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;treatment 1 vs control (race 1 vs race 2)&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 2 (race 1 vs race 2)&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 3&amp;nbsp;(race 1 vs race 2)&lt;/P&gt;&lt;P&gt;So on and so forth.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;treatment 1 vs control (race 1 vs race 2): baseline to 12 months&lt;/P&gt;&lt;P&gt;treatment 1 vs treatment 2 (race 1 vs race 2): baseline to 12 months&lt;/P&gt;&lt;P&gt;So on and so forth.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 23:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735386#M35744</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2021-04-19T23:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Between group differences using mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735508#M35745</link>
      <description>&lt;P&gt;Could you show the model you are currently using?&amp;nbsp; I believe all of your questions can be resolved either by 'slicing' the LSMEANS or by writing appropriate LSMESTIMATE statements.&amp;nbsp; It just would help to know what you are fitting before trying to write any code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735508#M35745</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-04-20T12:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Between group differences using mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735520#M35746</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;Sure, thanks for your help. Please the model information below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;mixed&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;=work;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;id time group race ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;model&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;outcome= time group race time*group race*group time*group*race;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;Repeated&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;time /&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Subject&lt;/SPAN&gt;&lt;SPAN&gt;=ID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;=cs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;lsmeans&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;time*group time*group*race race*group /&lt;/SPAN&gt;&lt;SPAN&gt;cl&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;-Renee&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/735520#M35746</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2021-04-20T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Between group differences using mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/736371#M35753</link>
      <description>&lt;P&gt;From your initial post, it appears to me that you want all possible comparisons within the various factors.&amp;nbsp; Given that, consider this approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=work; 
class id time group race ;
model outcome= time group race time*group race*group time*group*race;
Repeated time / Subject=ID type=cs;
lsmeans &lt;STRONG&gt;group&lt;/STRONG&gt; time*group race*group&amp;nbsp;&lt;/CODE&gt;time*group*race /cl&lt;STRONG&gt; diff&lt;/STRONG&gt; ;&lt;/PRE&gt;
&lt;P&gt;The additions are in bold.&amp;nbsp; One thing to consider is that you now have a lot of comparisons, and without some adjustment for this multiplicity, many of the "significant" comparisons are liable to be false positives.&amp;nbsp; To handle this, read up on the adjust= option in the PROC MIXED documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 11:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/736371#M35753</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-04-22T11:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Between group differences using mixed model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/736704#M35774</link>
      <description>&lt;P&gt;Thank you. This is very helpful. I will try this approach and look into the adjust=option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 02:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Between-group-differences-using-mixed-model/m-p/736704#M35774</guid>
      <dc:creator>nqb5210</dc:creator>
      <dc:date>2021-04-24T02:52:47Z</dc:date>
    </item>
  </channel>
</rss>

