<?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 Comparing custom contrasts when interaction is not significant in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866149#M42814</link>
    <description>&lt;P&gt;Hello, everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a model that incorporates race as (Whites vs other) and ethnicity as (Hispanic vs not).&amp;nbsp; The PI wants to look at non-Hispanic Whites vs all others as a contrast.&amp;nbsp; This is easily enough done by including the interaction in the model and writing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lSMestimate race2*hispanic2 'All Others vs. Non-Hispanic White'  1 -3
                                                                 1  1 / divisor = 3;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It turns out that this interaction is very not significant (Type 3 p = 0.70).&amp;nbsp; I realize that the interaction staying in the model while not significant is not likely to affect my results much.&amp;nbsp; But if I did want to remove the interaction from the model and rerun, could I still do the same comparison: non-Hispanic Whites vs all others?&amp;nbsp; I've written this code, and it's estimable, but my hunch is that theoretically, the model can no longer say anything about a combination of the two groups, even though I technically can form the estimates and compare their difference.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*estimate 'Hispanic Non-White'            intercept 1 race2  0  1 hispanic2  1  0;
*estimate 'Non-Hispanic Non-White'        intercept 1 race2  0  1 hispanic2  0  1;
*estimate 'Hispanic White'                intercept 1 race2  1  0 hispanic2  1  0;&lt;BR /&gt;
 estimate 'Avg. of All Others'            intercept 3 race2  1  2 hispanic2  2  1 (divisor = 3),
          'Non-Hispanic White'            intercept 1 race2  1  0 hispanic2  0  1,
          'Avg. of All Others vs. Non-Hispanic White' race2 -2  2 hispanic2  2 -2 (divisor = 3);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This does give an answer in the same ballpark as the model with the interaction, which might be expected since the interaction was not significant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My reason for asking is because my real model has 8 racial groups and 3 ethnicity groups, and running the model with an interaction is not possible (quasi-complete separation in logistic).&amp;nbsp; I dichotomized race and ethnicity to get an answer to the study question, but I am just curious if I could have kept the full responses, omitted the interaction, and still answer the question.&amp;nbsp; The answer I get when I do that is very different from either of the dichotomized answers above.&amp;nbsp; I want to understand if that difference is likely because what I did is invalid or if keeping all the detail about the other racial and ethnic categories might really have changed the result a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 15:06:40 GMT</pubDate>
    <dc:creator>Kastchei</dc:creator>
    <dc:date>2023-03-24T15:06:40Z</dc:date>
    <item>
      <title>Comparing custom contrasts when interaction is not significant</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866149#M42814</link>
      <description>&lt;P&gt;Hello, everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a model that incorporates race as (Whites vs other) and ethnicity as (Hispanic vs not).&amp;nbsp; The PI wants to look at non-Hispanic Whites vs all others as a contrast.&amp;nbsp; This is easily enough done by including the interaction in the model and writing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lSMestimate race2*hispanic2 'All Others vs. Non-Hispanic White'  1 -3
                                                                 1  1 / divisor = 3;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It turns out that this interaction is very not significant (Type 3 p = 0.70).&amp;nbsp; I realize that the interaction staying in the model while not significant is not likely to affect my results much.&amp;nbsp; But if I did want to remove the interaction from the model and rerun, could I still do the same comparison: non-Hispanic Whites vs all others?&amp;nbsp; I've written this code, and it's estimable, but my hunch is that theoretically, the model can no longer say anything about a combination of the two groups, even though I technically can form the estimates and compare their difference.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*estimate 'Hispanic Non-White'            intercept 1 race2  0  1 hispanic2  1  0;
*estimate 'Non-Hispanic Non-White'        intercept 1 race2  0  1 hispanic2  0  1;
*estimate 'Hispanic White'                intercept 1 race2  1  0 hispanic2  1  0;&lt;BR /&gt;
 estimate 'Avg. of All Others'            intercept 3 race2  1  2 hispanic2  2  1 (divisor = 3),
          'Non-Hispanic White'            intercept 1 race2  1  0 hispanic2  0  1,
          'Avg. of All Others vs. Non-Hispanic White' race2 -2  2 hispanic2  2 -2 (divisor = 3);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This does give an answer in the same ballpark as the model with the interaction, which might be expected since the interaction was not significant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My reason for asking is because my real model has 8 racial groups and 3 ethnicity groups, and running the model with an interaction is not possible (quasi-complete separation in logistic).&amp;nbsp; I dichotomized race and ethnicity to get an answer to the study question, but I am just curious if I could have kept the full responses, omitted the interaction, and still answer the question.&amp;nbsp; The answer I get when I do that is very different from either of the dichotomized answers above.&amp;nbsp; I want to understand if that difference is likely because what I did is invalid or if keeping all the detail about the other racial and ethnic categories might really have changed the result a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 15:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866149#M42814</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2023-03-24T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing custom contrasts when interaction is not significant</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866181#M42815</link>
      <description>I don't see anything wrong with your approach, but keep in mind that if you make that comparison in the model that omits the interaction, the effect of White is assumed by the model to be totally unaffected by ethnicity even if there is some small, but insignificant effect of ethnicity. BTW, you might find it more intuitive to create a single variable that has a unique value for each combination of race and ethnicity and use that in place of race, ethnicity and their interaction. That would allow you to use the LSMESTIMATE statement to write the comparison(s) of interest.</description>
      <pubDate>Fri, 24 Mar 2023 16:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866181#M42815</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-03-24T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing custom contrasts when interaction is not significant</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866644#M42829</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; And duh!&amp;nbsp; I don't know why I just didn't make a combined variable.&amp;nbsp; It's so obvious now, haha.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 22:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-custom-contrasts-when-interaction-is-not-significant/m-p/866644#M42829</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2023-03-27T22:07:32Z</dc:date>
    </item>
  </channel>
</rss>

