<?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: Odds ratio for Proc Genmod using repeated observations in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570350#M28052</link>
    <description>&lt;P&gt;GENMOD fits the broad range of generalized linear models and does not focus exclusively on the logistic model, which is the only model for which odds ratios are possible, so it does not automatically produce odds ratio estimates for the predictors like PROC LOGISTIC does. You will need one LSMEANS statement for all your categorical predictors (you can specify multiple predictors in one LSMEANS statement) and an ESTIMATE statement for each continuous predictor. By the way, as mentioned in the note, you can use the ODDSRATIO option in the LSMEANS statement instead of the EXP option to get better labeling in the output.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 19:03:52 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2019-07-01T19:03:52Z</dc:date>
    <item>
      <title>Odds ratio for Proc Genmod using repeated observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/569981#M28038</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working on a data set which has repeated observations (ID). I would like to get odds ratio for an out of interest (BloodCult) for a set of factors that influence the outcome. Some of these factors are categorical and some are continuous. Some of the categorical variables are more than two levels (binomial and multinomial). I would appreciate if anyone can help me with the SAS code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BloodCult is outcome (0/1)&lt;/P&gt;&lt;P&gt;LOS is a continuous variable&lt;/P&gt;&lt;P&gt;Disc_Status and Ward have more than two levels (ref = 1)&lt;/P&gt;&lt;P&gt;Rest of the variables are binomial (0/1) . Can use ref=0.&lt;/P&gt;&lt;P&gt;I tried the following but I am not getting the odds ratio estimates with 95% CI for the factors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=SIRS.Temp_Blood_Demo_ICD_Combined descending; 
class  ID Race FebrileFlag  Temp_HAI  Temp_Grp  ELX_GRP_1  ELX_GRP_10  DM 
ELX_GRP_15  ELX_GRP_14   ELX_GRP_17  SIRS  Ward Disc_Status ;
model BloodCult =Race FebrileFlag Temp_HAI Temp_Grp ELX_GRP_1 ELX_GRP_10 DM ELX_GRP_15 ELX_GRP_14  ELX_GRP_17 SIRS Ward  Disc_Status LOS / dist=bin;
repeated subject = ID/ type=exch covb corrw;
estimate LOS 1/ exp;
lsmeans Race FebrileFlag Temp_HAI Temp_Grp ELX_GRP_1 ELX_GRP_10 DM ELX_GRP_15 ELX_GRP_14  ELX_GRP_17 SIRS /diff exp cl;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 20:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/569981#M28038</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-06-28T20:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratio for Proc Genmod using repeated observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570228#M28047</link>
      <description>&lt;P&gt;See &lt;A href="http://support.sas.com/kb/42728" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570228#M28047</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-07-01T13:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratio for Proc Genmod using repeated observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570276#M28051</link>
      <description>&lt;P&gt;Thanks for the response. I have reviewed this report prior to posting my question. Is there a better way for getting odds ratio for 10+ predictors without stating estimate and lsmeans statement for each and every variable? My categorical variables are 0/1 for most of them except two where I have more than two categories. I would like to get OR for all other levels of these two variables keeping one level as a control.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 14:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570276#M28051</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2019-07-01T14:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Odds ratio for Proc Genmod using repeated observations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570350#M28052</link>
      <description>&lt;P&gt;GENMOD fits the broad range of generalized linear models and does not focus exclusively on the logistic model, which is the only model for which odds ratios are possible, so it does not automatically produce odds ratio estimates for the predictors like PROC LOGISTIC does. You will need one LSMEANS statement for all your categorical predictors (you can specify multiple predictors in one LSMEANS statement) and an ESTIMATE statement for each continuous predictor. By the way, as mentioned in the note, you can use the ODDSRATIO option in the LSMEANS statement instead of the EXP option to get better labeling in the output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Odds-ratio-for-Proc-Genmod-using-repeated-observations/m-p/570350#M28052</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-07-01T19:03:52Z</dc:date>
    </item>
  </channel>
</rss>

