Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Odds ratio for Proc Genmod using repeated observations

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 06-28-2019 04:36 PM
(1296 views)

Hi all,

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.

BloodCult is outcome (0/1)

LOS is a continuous variable

Disc_Status and Ward have more than two levels (ref = 1)

Rest of the variables are binomial (0/1) . Can use ref=0.

I tried the following but I am not getting the odds ratio estimates with 95% CI for the factors.

Thank you!

```
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;
```

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

See this note.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. **Registration is now open through August 30th**. Visit the SAS Hackathon homepage.

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.