<?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: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546531#M27320</link>
    <description>&lt;P&gt;Rajesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! That makes sense. I have a follow up question. I'd like to stratify my odds ratios by covariates, e.g. race (variable name: "race"). So I'd like to see what the ORs are for respondents with private insurance who are (1) white, (2) black/african american. etc. My code for looking at OR among respondents with private insurance looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;proc surveylogistic data=work.nsduh082;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class insurance_private / param=ref;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model mentalhealth_2008 (event=first) = insurance_private / covb;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;weight ANALWT_C;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there some sort of statement I can use to tell SAS to stratify my odds by race? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 14:58:20 GMT</pubDate>
    <dc:creator>kwrigh28</dc:creator>
    <dc:date>2019-03-27T14:58:20Z</dc:date>
    <item>
      <title>How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546357#M27317</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a novice with SAS - using SAS University Edition - and am trying to run an odds ratio using proc logistic. I'm looking to find the odds of a respondent experiencing mental health issues (a binary variable titled mentalhealth_2008, where '1' indicates experiencing mental health issues) by their insurance type (categorical with 4 categories: 1, 2, 3, 4). Here's the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data=work.nsduh082;&lt;BR /&gt;class insurancetype / param=ref;&lt;BR /&gt;model mentalhealth_2008 (event=first) = insurancetype / covb;&lt;BR /&gt;weight ANALWT_C;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My results do show me the ORs, but they show me the OR of insurance type 1 vs. 4; 2 vs. 4; and 3 vs. 4. But I just want to know the crude odds of each insurance type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with my code? How can I get SAS to report the crude odds for each level of insurance variable?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 00:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546357#M27317</guid>
      <dc:creator>kwrigh28</dc:creator>
      <dc:date>2019-03-27T00:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546431#M27318</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you have there are crude odds ratios. Since 'insurancetype'&amp;nbsp;is a categorical variable with four levels, one level should be used as a reference. Otherwise, the&amp;nbsp;computation of odds would be meaningless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 10:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546431#M27318</guid>
      <dc:creator>Rajesh3</dc:creator>
      <dc:date>2019-03-27T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546509#M27319</link>
      <description>&lt;P&gt;As the name implies, an "odds ratio" is ratio of two odds. For a continuous predictor, the two odds differ by one unit. For a categorical (CLASS) predictor like yours, the two odds are for two levels of the predictor. PROC LOGISTIC (and PROC SURVEYLOGISTIC that you are using) uses the odds of the reference level (by default, the last level) in the denominator of the odds ratio. You can get the odds for each level of the predictor, but an odds ratio for each level does not make sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 14:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546509#M27319</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-03-27T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546531#M27320</link>
      <description>&lt;P&gt;Rajesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! That makes sense. I have a follow up question. I'd like to stratify my odds ratios by covariates, e.g. race (variable name: "race"). So I'd like to see what the ORs are for respondents with private insurance who are (1) white, (2) black/african american. etc. My code for looking at OR among respondents with private insurance looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;proc surveylogistic data=work.nsduh082;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class insurance_private / param=ref;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model mentalhealth_2008 (event=first) = insurance_private / covb;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;weight ANALWT_C;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there some sort of statement I can use to tell SAS to stratify my odds by race? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 14:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546531#M27320</guid>
      <dc:creator>kwrigh28</dc:creator>
      <dc:date>2019-03-27T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546547#M27321</link>
      <description>&lt;P&gt;If you think that the odds ratios change according to race, then you are saying that you expect race to interact with insurance. So, specify this model and then use the ODDSRATIO statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;model mentalhealth_2008 (event=first) = insurance_private race insurance_private*race ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;oddsratio&amp;nbsp; insurance_private;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 15:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546547#M27321</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-03-27T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546549#M27322</link>
      <description>You would need to add RACE to your model, e.g.&lt;BR /&gt;class insurance_private race / param=glm;&lt;BR /&gt;model mentalhealth_2008 (event=first) = insurance_private|race;&lt;BR /&gt;&lt;BR /&gt;Then you could add the LSMEANS statement with the DIFF and OR option to get the odds ratios&lt;BR /&gt;&lt;BR /&gt;This paper has a specific example that you can follow:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS404-2014.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings14/SAS404-2014.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2019 15:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546549#M27322</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2019-03-27T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get crude odds ratio for binary outcome variable and categorical (4 level) exposure varia</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546914#M27334</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/166985"&gt;@kwrigh28&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a novice with SAS - using SAS University Edition - and am trying to run an odds ratio using proc logistic. I'm looking to find the odds of a respondent experiencing mental health issues (a binary variable titled mentalhealth_2008, where '1' indicates experiencing mental health issues) by their insurance type (categorical with 4 categories: 1, 2, 3, 4). Here's the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data=work.nsduh082;&lt;BR /&gt;class insurancetype / param=ref;&lt;BR /&gt;model mentalhealth_2008 (event=first) = insurancetype / covb;&lt;BR /&gt;weight ANALWT_C;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My results do show me the ORs, but they show me the OR of insurance type 1 vs. 4; 2 vs. 4; and 3 vs. 4. But I just want to know the crude odds of each insurance type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with my code? How can I get SAS to report the crude odds for each level of insurance variable?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You haven't specified any sampling strata or clusters which the NSDUH should provide. Was that intentional?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 15:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-crude-odds-ratio-for-binary-outcome-variable-and/m-p/546914#M27334</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-03-28T15:28:45Z</dc:date>
    </item>
  </channel>
</rss>

