<?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 Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883295#M43704</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am conducting a county-level analysis. Counties are clustered within states so I am using PROC GLIMMIX to account for clustering of counties within states (and thus correlation between counties within the same state).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to visualize the interaction term between 2 continuous variables (depression*unemployment). The outcome is binary (1 or 0), not continuous, and the measure of association is Odds Ratio (OR). I have seen a few SAS sources for these but none show how to a) conduct this for clustered data (I'm using PROC GLIMMIX), b) adjust for confounding variables while studying the interaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please share code for visualizing interaction in this scenario? Many thanks for your time and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my PROC GLIMMIX code:&lt;/P&gt;&lt;P&gt;/* GLIMMIX for full cohort*/&lt;BR /&gt;proc glimmix data=output.cohort_all_vars2 ;&lt;BR /&gt;class state&amp;nbsp; urbanity (ref="0") gini_high (ref="0") ;&amp;nbsp;&lt;BR /&gt;model highrisk=&amp;nbsp; &amp;nbsp;COPD poverty popabove65 gini_high uninsured lessHS unemployment percwhite percentmale heart_disease depression Opioid_Rx_Rate urbanity&amp;nbsp;depression*unemployment / dist=bin cl oddsratio;&lt;BR /&gt;random int /subject=state /*type=cs*/;&lt;BR /&gt;estimate 'gini_high' gini_high 1 / exp;&lt;BR /&gt;estimate 'uninsured' uninsured 1 / exp;&lt;BR /&gt;estimate 'lessHS' lessHS 1 / exp;&lt;BR /&gt;estimate 'poverty' poverty 1 / exp;&lt;BR /&gt;estimate 'unemployment' unemployment 1 / exp;&lt;BR /&gt;estimate 'COPD' COPD 1 / exp;&lt;BR /&gt;estimate 'popabove65' popabove65 1 / exp;&lt;BR /&gt;estimate 'percwhite' percwhite 1 / exp;&lt;BR /&gt;estimate 'percentmale' percentmale 1 / exp;&lt;/P&gt;&lt;P&gt;estimate 'heart_disease' heart_disease 1 / exp;&lt;BR /&gt;estimate 'depression' depression 1 / exp;&lt;BR /&gt;estimate 'Opioid_Rx_Rate' Opioid_Rx_Rate 1 / exp;&lt;BR /&gt;estimate 'urbanity' urbanity 1 / exp;&lt;BR /&gt;estimate 'depression*unemployment' depression*unemployment 1 / exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 09:32:01 GMT</pubDate>
    <dc:creator>johnrizk</dc:creator>
    <dc:date>2023-07-03T09:32:01Z</dc:date>
    <item>
      <title>Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883295#M43704</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am conducting a county-level analysis. Counties are clustered within states so I am using PROC GLIMMIX to account for clustering of counties within states (and thus correlation between counties within the same state).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to visualize the interaction term between 2 continuous variables (depression*unemployment). The outcome is binary (1 or 0), not continuous, and the measure of association is Odds Ratio (OR). I have seen a few SAS sources for these but none show how to a) conduct this for clustered data (I'm using PROC GLIMMIX), b) adjust for confounding variables while studying the interaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please share code for visualizing interaction in this scenario? Many thanks for your time and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my PROC GLIMMIX code:&lt;/P&gt;&lt;P&gt;/* GLIMMIX for full cohort*/&lt;BR /&gt;proc glimmix data=output.cohort_all_vars2 ;&lt;BR /&gt;class state&amp;nbsp; urbanity (ref="0") gini_high (ref="0") ;&amp;nbsp;&lt;BR /&gt;model highrisk=&amp;nbsp; &amp;nbsp;COPD poverty popabove65 gini_high uninsured lessHS unemployment percwhite percentmale heart_disease depression Opioid_Rx_Rate urbanity&amp;nbsp;depression*unemployment / dist=bin cl oddsratio;&lt;BR /&gt;random int /subject=state /*type=cs*/;&lt;BR /&gt;estimate 'gini_high' gini_high 1 / exp;&lt;BR /&gt;estimate 'uninsured' uninsured 1 / exp;&lt;BR /&gt;estimate 'lessHS' lessHS 1 / exp;&lt;BR /&gt;estimate 'poverty' poverty 1 / exp;&lt;BR /&gt;estimate 'unemployment' unemployment 1 / exp;&lt;BR /&gt;estimate 'COPD' COPD 1 / exp;&lt;BR /&gt;estimate 'popabove65' popabove65 1 / exp;&lt;BR /&gt;estimate 'percwhite' percwhite 1 / exp;&lt;BR /&gt;estimate 'percentmale' percentmale 1 / exp;&lt;/P&gt;&lt;P&gt;estimate 'heart_disease' heart_disease 1 / exp;&lt;BR /&gt;estimate 'depression' depression 1 / exp;&lt;BR /&gt;estimate 'Opioid_Rx_Rate' Opioid_Rx_Rate 1 / exp;&lt;BR /&gt;estimate 'urbanity' urbanity 1 / exp;&lt;BR /&gt;estimate 'depression*unemployment' depression*unemployment 1 / exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 09:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883295#M43704</guid>
      <dc:creator>johnrizk</dc:creator>
      <dc:date>2023-07-03T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883297#M43705</link>
      <description>&lt;P&gt;I think the EFFECTPLOT command, with the CONTOUR option, allows you to see plots of an interaction between two continuous variables.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 09:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883297#M43705</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-03T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883301#M43706</link>
      <description>&lt;P&gt;Thanks for your response. It would help to have code that accounts for clustering and adjusts for other covariates.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 09:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883301#M43706</guid>
      <dc:creator>johnrizk</dc:creator>
      <dc:date>2023-07-03T09:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883303#M43707</link>
      <description>&lt;P&gt;The EFFECTPLOT uses (of course) the estimated regression coefficients. These already account for (in some sense) the clustering and other covariates. So, it's not clear what is missing that EFFECTPLOT is not providing for you. (Re-reading your original problem statement, I don't see clustering or even the usage of counties in the model)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883303#M43707</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-03T10:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883306#M43708</link>
      <description>&lt;P&gt;Thank you for responding. Using this example:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_introcom_sect032.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_introcom_sect032.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that they used logistic regression and integrated the effectplot statement in their logistic reg code. Are you saying that I can use effectplot in PROC GLIMMIX too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883306#M43708</guid>
      <dc:creator>johnrizk</dc:creator>
      <dc:date>2023-07-03T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883307#M43709</link>
      <description>&lt;P&gt;Actually, EFFECTPLOT does not work in GLIMMIX.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883307#M43709</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-03T10:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883331#M43716</link>
      <description>&lt;P&gt;Use the STORE statement in PROC GLIMMIX to save the fitted model. Then use PROC PLM to read the saved model (using the RESTORE= option) and include the EFFECTPLOT statement.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 15:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883331#M43716</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-07-03T15:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883340#M43717</link>
      <description>&lt;P&gt;For an example and discussion, see &lt;A href="https://blogs.sas.com/content/iml/2019/05/30/visualize-interaction-effects-regression.html" target="_self"&gt;"Visualize interaction effects in regression models."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 17:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883340#M43717</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-07-03T17:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing Continuous*Continuous variable Interaction of Binary Outcome when using clustered da</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883432#M43723</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1688471078034.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85546i76081079EE0FC262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1688471078034.png" alt="Ksharp_0-1688471078034.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 11:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Visualizing-Continuous-Continuous-variable-Interaction-of-Binary/m-p/883432#M43723</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-04T11:44:36Z</dc:date>
    </item>
  </channel>
</rss>

