<?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 How to test the interaction between strata and treatment groups in a mmrm model? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926208#M364488</link>
    <description>&lt;P&gt;I performed a mmrm model as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; proc mixed data = have;
         class id treatment week strata;
         model chg = baseline treatment week treatment*week treatment*strata/ ddfm = KR;
         repeated week/ subject = id type = UN;
         lsmeans treatment*week/ cl alpha = 0.05 diff
         ods output Tests3=tests3 lsmeans=lsmeans diffs=diffs;
         run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(1) &lt;/SPAN&gt;id:&amp;nbsp;&lt;SPAN&gt;represents the patient id, ie 101,102,103....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) chg: represents the change from baseline of hba1c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(3) baseline: the value of hba1c at baseline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(4) treatment: contains 2 categories: "drug" and "placebo"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(5) week: contrains 3 levels: week8, week16, week24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(6) strata: represents the stratification by the median of hba1c at baseline, ie:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group1=patient of those who have hba1c at baseline &amp;lt;= median of hba1c at baseline;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group2=patient of those who have hba1c at baseline &amp;gt; median of hba1c at baseline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, I'd like to test the interaction between strata and treatment, but I am not sure if I performed the test in the right way. Because I checked the results (as below), the column of "Diffs in LS means" were pretty close between strata, however the interaction p-value is statistically significant. (The values of Diffs in LS means were got from the output file diffs, and the p for interaction were got from the output file test3.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interaction.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95980i9BD39C2E31893048/image-size/large?v=v2&amp;amp;px=999" role="button" title="interaction.PNG" alt="interaction.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also checked the Diffs in LS means not only at week24, but also week 8 and week16, they all looked pretty close between strata. So did I interpret the data in a wrong way? Or did I perform the model in a wrong way? What data should look different if the p for interaction is significant? Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 28 Apr 2024 08:51:06 GMT</pubDate>
    <dc:creator>Robin_moon</dc:creator>
    <dc:date>2024-04-28T08:51:06Z</dc:date>
    <item>
      <title>How to test the interaction between strata and treatment groups in a mmrm model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926208#M364488</link>
      <description>&lt;P&gt;I performed a mmrm model as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; proc mixed data = have;
         class id treatment week strata;
         model chg = baseline treatment week treatment*week treatment*strata/ ddfm = KR;
         repeated week/ subject = id type = UN;
         lsmeans treatment*week/ cl alpha = 0.05 diff
         ods output Tests3=tests3 lsmeans=lsmeans diffs=diffs;
         run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(1) &lt;/SPAN&gt;id:&amp;nbsp;&lt;SPAN&gt;represents the patient id, ie 101,102,103....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) chg: represents the change from baseline of hba1c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(3) baseline: the value of hba1c at baseline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(4) treatment: contains 2 categories: "drug" and "placebo"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(5) week: contrains 3 levels: week8, week16, week24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(6) strata: represents the stratification by the median of hba1c at baseline, ie:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group1=patient of those who have hba1c at baseline &amp;lt;= median of hba1c at baseline;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group2=patient of those who have hba1c at baseline &amp;gt; median of hba1c at baseline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, I'd like to test the interaction between strata and treatment, but I am not sure if I performed the test in the right way. Because I checked the results (as below), the column of "Diffs in LS means" were pretty close between strata, however the interaction p-value is statistically significant. (The values of Diffs in LS means were got from the output file diffs, and the p for interaction were got from the output file test3.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interaction.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95980i9BD39C2E31893048/image-size/large?v=v2&amp;amp;px=999" role="button" title="interaction.PNG" alt="interaction.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also checked the Diffs in LS means not only at week24, but also week 8 and week16, they all looked pretty close between strata. So did I interpret the data in a wrong way? Or did I perform the model in a wrong way? What data should look different if the p for interaction is significant? Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 08:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926208#M364488</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2024-04-28T08:51:06Z</dc:date>
    </item>
  </channel>
</rss>

