BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Recep
Quartz | Level 8

Hello all,

I was wondering what would be the best procedure to use to calculate pooled odds ratio (OR)? I have a raw data for 6 separate studies where a certain drug (and placebo) were tested for a health condition. I can calculate the ORs for the individual studies but I am having a hard time to calculate the pooled OR when I put all the record level information into one file. Below is the descriptive stats for those studies:

StudyPlaceboPatient_diedCountPercent
STUDY 1NoNo59721.5601
STUDY 1NoYes782.8169
STUDY 1YesNo185166.8472
STUDY 1YesYes2438.7757
STUDY 2NoNo124548.0139
STUDY 2NoYes1555.9776
STUDY 2YesNo108641.882
STUDY 2YesYes1074.1265
STUDY 3NoNo76855.3314
STUDY 3NoYes926.6282
STUDY 3YesNo47734.366
STUDY 3YesYes513.6744
STUDY 4NoNo23819.2246
STUDY 4NoYes463.7157
STUDY 4YesNo79063.8126
STUDY 4YesYes16413.2472
STUDY 5NoNo59065.1934
STUDY 5NoYes11813.0387
STUDY 5YesNo17118.895
STUDY 5YesYes262.8729
STUDY 6NoNo134533.0629
STUDY 6NoYes2024.9656
STUDY 6YesNo223955.0393
STUDY 6YesYes2826.9322


I know that the pooled OR can be calculated both from the individual study ORs (which are below) and from the pooled data set where all the raw data for those studies is under one file.

 

 ORLCLUCL
STUDY 11.00480.76611.3179
STUDY 20.79140.61051.0258
STUDY 30.89250.62221.2802
STUDY 41.07410.75111.5359
STUDY 50.76020.48111.2012
STUDY 60.83860.69151.017

 

I was wondering if someone can help to calculate the pooled OR either from the individual study ORs or from the pooled data set.

 

For reference below is the SAS code I use that does NOT yield the pooled OR.

 

proc freq data=master;
by study;
tables placebo*patient_died/nopercent norow nocol out=master_pooled;
run;

 

proc freq data=master_pooled;
weight count;
tables patient_died*placebo/chisq relrisk;
run;

 

Thanks a lot in advance!

 

Recep

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Watts
SAS Employee
proc freq data=have; 
tables study * placebo * patient_died / cmh;
weight count;
run;

The CMH option in the TABLES statement provides the overall/adjusted odds ratio for multiway (stratified) 2x2 tables. See the documentation section Adjusted Odds Ratio and Relative Risks .

View solution in original post

2 REPLIES 2
Watts
SAS Employee
proc freq data=have; 
tables study * placebo * patient_died / cmh;
weight count;
run;

The CMH option in the TABLES statement provides the overall/adjusted odds ratio for multiway (stratified) 2x2 tables. See the documentation section Adjusted Odds Ratio and Relative Risks .

Recep
Quartz | Level 8

Thanks a lot for very prompt and accurate response!

Ready to join fellow brilliant minds for the SAS Hackathon?

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

Register today!
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.

Discussion stats
  • 2 replies
  • 966 views
  • 2 likes
  • 2 in conversation