<?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: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643655#M30848</link>
    <description>&lt;P&gt;Use the STORE, LSMEANS, and ODS OUTPUT statements in SURVEYLOGISTIC followed by the NLMeans macro as illustrated (using PROC LOGISTIC) in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 15:32:10 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2020-04-28T15:32:10Z</dc:date>
    <item>
      <title>Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643609#M30840</link>
      <description>&lt;P&gt;proc surveylogistic data=data;&lt;BR /&gt;class TARGET b c;&lt;BR /&gt;model TARGET (event='1') = a b c d e f g / clparm;&lt;BR /&gt;strata STRATA;&lt;BR /&gt;cluster PSU;&lt;BR /&gt;weight WEIGHT;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyfreq data=data;&lt;BR /&gt;strata STRATA;&lt;BR /&gt;cluster PSU;&lt;BR /&gt;weight WEIGHT;&lt;BR /&gt;tables (a b c d e f g)*TARGET / RelRisk clparm;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in the odds ratio of variable b has on TARGET. I see different odds ratios for proc surveylogistic and proc survey freq, and manually proc surveyfreq makes sense when I take the weighted values. Why am I seeing different odds ratios and what can I do to fix? At least can I see relative risk in proc surveyfreq as that's the model I'm using.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643609#M30840</guid>
      <dc:creator>krueg314</dc:creator>
      <dc:date>2020-04-28T13:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643621#M30842</link>
      <description>&lt;P&gt;Without your data it is hard to tell exactly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On possible cause is that Surveyfreq and Surveylogistic will treat missing values a bit differently. If any variable on the model statement is missing (unless the MISSING option is included on a the Class statement) then the entire record is not used for modeling (pretty common to most of the modeling procedures). Read the diagnostics about how many records are in the data set and how many actually used for the model.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643621#M30842</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-28T14:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643636#M30843</link>
      <description>&lt;P&gt;Ok I think the key is to drop all missing values before running because the proc surveyfreq only accounts for the only missing values of b and TARGET, rather than the other ones droped by the regression.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643636#M30843</guid>
      <dc:creator>krueg314</dc:creator>
      <dc:date>2020-04-28T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643641#M30844</link>
      <description>&lt;P&gt;Beyond the issue of missing values, the results will still differ since the odds ratio estimates for any variable provided by SURVEYLOGISTIC are adjusted for the effects of the other variables in the model. The estimates from SURVEYFREQ are not adjusted for the other variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643641#M30844</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-04-28T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643643#M30845</link>
      <description>I have tried this to delete all the missing before surveyfreq, but the odds ratio still a bit different &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;data byemiss;&lt;BR /&gt;set data (KEEP=TARGET a b c d e f g STRATA PSU WEIGHT);&lt;BR /&gt;if nmiss(of _numeric_) &amp;gt; 0 then delete;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 28 Apr 2020 15:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643643#M30845</guid>
      <dc:creator>krueg314</dc:creator>
      <dc:date>2020-04-28T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643646#M30846</link>
      <description>&lt;P&gt;After accounting for missing this must be the reason. Any way I can still get the relative risk in the the proc surveylogistic statement, since I want to account for these interactions?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643646#M30846</guid>
      <dc:creator>krueg314</dc:creator>
      <dc:date>2020-04-28T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643655#M30848</link>
      <description>&lt;P&gt;Use the STORE, LSMEANS, and ODS OUTPUT statements in SURVEYLOGISTIC followed by the NLMeans macro as illustrated (using PROC LOGISTIC) in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643655#M30848</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-04-28T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I Getting Different Odds Ratios? Display relative risk in proc surveylogistic?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643684#M30861</link>
      <description>&lt;P&gt;I really, really, really wish that this macro had been around back when I first used PROC LOGISTIC and GENMOD.&amp;nbsp; I was happily including ORs in stuff that went to study management, but they wanted everything expressed as relative risk, since that is what PROC FREQ generates and that is what they were used to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-am-I-Getting-Different-Odds-Ratios-Display-relative-risk-in/m-p/643684#M30861</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-28T17:33:49Z</dc:date>
    </item>
  </channel>
</rss>

