<?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: I am trying to obtain the crude ORs for several variables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575428#M162764</link>
    <description>&lt;P&gt;Okay so maybe i have it backwards. How would i determine my adjusted ratios?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below is the code i used to obtain the unadjusted ratios:&lt;/P&gt;&lt;P&gt;Proc Logistic data=df_epi;&lt;BR /&gt;class educ ;&lt;BR /&gt;model Stroke (Event='1') = educ Age bmi diabetes prevchd prevhyp sysbp diabp glucose totchol heartrte;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how would i obtain the adjusted ratios?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 16:01:48 GMT</pubDate>
    <dc:creator>deme_bb</dc:creator>
    <dc:date>2019-07-22T16:01:48Z</dc:date>
    <item>
      <title>I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575394#M162751</link>
      <description>&lt;P&gt;I am trying to obtain crude OR and their relevant CIs for several variable using the procfreq tables function; however, the statement is not giving me odds ratios.&lt;/P&gt;&lt;P&gt;Proc Freq data=df_epi ;&lt;BR /&gt;tables age * Stroke / cmh;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtained the adjusted OR using this code.&lt;/P&gt;&lt;P&gt;Proc Logistic data=df_epi;&lt;BR /&gt;class educ ;&lt;BR /&gt;model Stroke (Event='1') = educ Age bmi diabetes prevchd prevhyp sysbp diabp glucose totchol heartrte;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help please&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 14:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575394#M162751</guid>
      <dc:creator>deme_bb</dc:creator>
      <dc:date>2019-07-22T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575417#M162758</link>
      <description>&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="aa-tabular"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A class="ng-scope" tabindex="0" href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetTarget=procstat_freq_syntax08.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de#procstat.freq.freqcmh" data-docset-id="procstat" data-docset-version="9.4" data-original-href="procstat_freq_syntax08.htm#procstat.freq.freqcmh"&gt;CMH&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Requests all Cochran-Mantel-Haenszel statistics&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A class="ng-scope" tabindex="0" href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetTarget=procstat_freq_syntax08.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de#procstat.freq.freqcmh1" data-docset-id="procstat" data-docset-version="9.4" data-original-href="procstat_freq_syntax08.htm#procstat.freq.freqcmh1"&gt;CMH1&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Requests CMH correlation statistic, &lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;adjusted odds ratios,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;and adjusted relative risks&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A class="ng-scope" tabindex="0" href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetTarget=procstat_freq_syntax08.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de#procstat.freq.freqcmh2" data-docset-id="procstat" data-docset-version="9.4" data-original-href="procstat_freq_syntax08.htm#procstat.freq.freqcmh2"&gt;CMH2&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Requests CMH correlation and row mean scores (ANOVA)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;statistics, &lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;adjusted odds ratios,&lt;/STRONG&gt;&lt;/FONT&gt; and adjusted relative risks&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="aa-tabular"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A class="ng-scope" tabindex="0" href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetTarget=procstat_freq_syntax08.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de#procstat.freq.freqorcl" data-docset-id="procstat" data-docset-version="9.4" data-original-href="procstat_freq_syntax08.htm#procstat.freq.freqorcl"&gt;OR&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Requests the odds ratio for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tables&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You haven't used an option that would provide OR, change your code by adding one of the following options instead and see if you get what you need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetTarget=procstat_freq_syntax08.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de"&gt;https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetTarget=procstat_freq_syntax08.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your table is not a 2x2 table, this gets a bit trickier and you're likely better off just using PROC LOGISTIC to get the unadjusted rates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how familiar you are with PROC LOGISTIC and logistic regression, but you may also want to specify PARAM=REF on the CLASS statement to get referential parameterization of your dummy variables, the default is GLM.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282399"&gt;@deme_bb&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to obtain crude OR and their relevant CIs for several variable using the procfreq tables function; however, the statement is not giving me odds ratios.&lt;/P&gt;
&lt;P&gt;Proc Freq data=df_epi ;&lt;BR /&gt;tables age * Stroke / cmh;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I obtained the adjusted OR using this code.&lt;/P&gt;
&lt;P&gt;Proc Logistic data=df_epi;&lt;BR /&gt;class educ ;&lt;BR /&gt;model Stroke (Event='1') = educ Age bmi diabetes prevchd prevhyp sysbp diabp glucose totchol heartrte;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help please&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 15:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575417#M162758</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T15:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575419#M162760</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;My table is not a 2x2. Proc logistic would only give me the adjusted ratios correct? If it doe sindeed give me crude ratios im not sure on how to go about obtaining them.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 15:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575419#M162760</guid>
      <dc:creator>deme_bb</dc:creator>
      <dc:date>2019-07-22T15:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575421#M162762</link>
      <description>Crude ratio's mean you haven't adjusted for any other variables. So if you run a logistic regression with a single variable that would be the crude rate.</description>
      <pubDate>Mon, 22 Jul 2019 15:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575421#M162762</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T15:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575428#M162764</link>
      <description>&lt;P&gt;Okay so maybe i have it backwards. How would i determine my adjusted ratios?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below is the code i used to obtain the unadjusted ratios:&lt;/P&gt;&lt;P&gt;Proc Logistic data=df_epi;&lt;BR /&gt;class educ ;&lt;BR /&gt;model Stroke (Event='1') = educ Age bmi diabetes prevchd prevhyp sysbp diabp glucose totchol heartrte;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how would i obtain the adjusted ratios?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575428#M162764</guid>
      <dc:creator>deme_bb</dc:creator>
      <dc:date>2019-07-22T16:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575431#M162765</link>
      <description>That is the adjusted ratios. Minus the fact you haven't fixed your class, unless you want that.</description>
      <pubDate>Mon, 22 Jul 2019 16:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575431#M162765</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T16:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575433#M162767</link>
      <description>&lt;P&gt;What do you mean by "fix the class statement"?&lt;/P&gt;&lt;P&gt;SO my unadjusted odds ratio would be me running that statement with each individual variable separately?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575433#M162767</guid>
      <dc:creator>deme_bb</dc:creator>
      <dc:date>2019-07-22T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575438#M162772</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282399"&gt;@deme_bb&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What do you mean by "fix the class statement"?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Not sure how familiar you are with PROC LOGISTIC and logistic regression, &lt;STRONG&gt;but you may also want to specify PARAM=REF on the CLASS statement to get referential parameterization of your dummy variables, the default is GLM.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;SO my unadjusted odds ratio would be me running that statement with each individual variable separately?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;. So if you run a logistic regression with a single variable that would be the crude rate.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575438#M162772</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T16:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to obtain the crude ORs for several variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575451#M162782</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-obtain-the-crude-ORs-for-several-variables/m-p/575451#M162782</guid>
      <dc:creator>deme_bb</dc:creator>
      <dc:date>2019-07-22T16:41:21Z</dc:date>
    </item>
  </channel>
</rss>

