<?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 surveylogistic - how to get odds ratio of main effects for an interaction variable? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473846#M24644</link>
    <description>&lt;P&gt;I don't see those two variables actually listed in the model, but I assume you are asking about the variables A and B.&lt;/P&gt;
&lt;P&gt;Using the LSMEANS statement with the SLICEBY and ODDSRATIO options should give you what you want.&amp;nbsp; I think some of the confusion may be in the fact that with an interaction you are assuming that there are multiple odds ratios for each level of the second variable.&lt;/P&gt;
&lt;P&gt;In other words, when you are looking at the odds ratio comparing A=1 vs A=2, there wil be a different odds ratio for each level of B.&amp;nbsp; So you won't get a single odds ratio unless you remove the interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This usage note might also be helpful for you as well.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/455.html" target="_blank"&gt;http://support.sas.com/kb/24/455.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 17:57:21 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2018-06-27T17:57:21Z</dc:date>
    <item>
      <title>proc surveylogistic - how to get odds ratio of main effects for an interaction variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473801#M24641</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with large survey data and running a logistic regression using proc surveylogistic. I have to compare the odds between two groups for various variables, so for that I included an interaction term for each variable I want . For example, my model statement is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model&amp;nbsp; Var Y = A B A*B;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Surveylogistic doesn't give odds ratios for terms involved in interactions, but I am able to get odds for the interaction terms at various nestings using the sliceby statement. Is there any way to get the odds ratio and their 95% intervals for the main effects A, and B individually in this model? Basically I want to have a table that has the following odds ratios:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Odds&amp;nbsp; &amp;nbsp; &amp;nbsp; CI&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.xx&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.xx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Various A*B slices&lt;/P&gt;&lt;P&gt;A1 by B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.XX&lt;/P&gt;&lt;P&gt;A2 BY B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no problem getting the values for slices, but how do I get the values and their intervals for main effects A,B?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473801#M24641</guid>
      <dc:creator>knicks1189</dc:creator>
      <dc:date>2018-06-27T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveylogistic - how to get odds ratio of main effects for an interaction variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473805#M24642</link>
      <description>&lt;P&gt;You might show the existing code you are using. That might help someone provide suggestions.&lt;/P&gt;
&lt;P&gt;And if you aren't running SAS 9.4 in some form you might indicate the version. There have been additions to the survey procs with each release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473805#M24642</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-27T16:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveylogistic - how to get odds ratio of main effects for an interaction variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473811#M24643</link>
      <description>&lt;P&gt;I am using the latest edition of SAS UE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data = dataname nomcar ;&lt;BR /&gt;domain x;&lt;BR /&gt;class Age_Bucket (ref = '1')&lt;BR /&gt;Female (ref = '1')&lt;BR /&gt;Race (ref = '1')&lt;BR /&gt;A&amp;nbsp;(ref = '3')&lt;BR /&gt;B(ref = '0')&lt;BR /&gt;/ param = glm;&lt;BR /&gt;strata nis_stratum;&lt;BR /&gt;cluster hosp_nis;&lt;BR /&gt;weight discharge_weight;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;model cholecystectomy (event = '1') =&lt;/P&gt;&lt;P&gt;AGE_BUCKET&lt;BR /&gt;FEMALE&lt;BR /&gt;RACE&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;mortal_score&lt;BR /&gt;&lt;BR /&gt;/* Interaction Terms */&lt;BR /&gt;&lt;BR /&gt;A*B&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/ clodds vadjust = none ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;slice A*B/ sliceby=A diff oddsratio cl adjust=bon ;&lt;BR /&gt;slice A*B/ sliceby=B diff oddsratio cl adjust=bon ;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the individual main effect odds ratios of SNH and PAY1 individually?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473811#M24643</guid>
      <dc:creator>knicks1189</dc:creator>
      <dc:date>2018-06-27T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveylogistic - how to get odds ratio of main effects for an interaction variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473846#M24644</link>
      <description>&lt;P&gt;I don't see those two variables actually listed in the model, but I assume you are asking about the variables A and B.&lt;/P&gt;
&lt;P&gt;Using the LSMEANS statement with the SLICEBY and ODDSRATIO options should give you what you want.&amp;nbsp; I think some of the confusion may be in the fact that with an interaction you are assuming that there are multiple odds ratios for each level of the second variable.&lt;/P&gt;
&lt;P&gt;In other words, when you are looking at the odds ratio comparing A=1 vs A=2, there wil be a different odds ratio for each level of B.&amp;nbsp; So you won't get a single odds ratio unless you remove the interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This usage note might also be helpful for you as well.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/455.html" target="_blank"&gt;http://support.sas.com/kb/24/455.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 17:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveylogistic-how-to-get-odds-ratio-of-main-effects-for-an/m-p/473846#M24644</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-06-27T17:57:21Z</dc:date>
    </item>
  </channel>
</rss>

