guido-s / meta

Official Git repository of R package meta
http://cran.r-project.org/web/packages/meta/index.html
GNU General Public License v2.0
82 stars 32 forks source link

Resolving Issue with estimates of odds ratios #3

Closed eric-kruger closed 6 years ago

eric-kruger commented 6 years ago

Hi sorry to ask this question here, but I have searched stack exchange, the documentation and also the code to find an answer to this question. But when I calculate the odds ratio myself (and using the fisher.test() I get the following estimate

> OR <- (270/288)/(281/301)
> OR
[1] 1.004226

However when I run this line of code I get the following:

> metabin(270,288,281,301,sm="OR")
     OR           95%-CI    z p-value
 1.0676 [0.5527; 2.0621] 0.19  0.8456

Details:
- Inverse variance method

Can you explain the slight discrepancy in the point estimate of the odds ratio between my calculations and what the metabin function is providing?

Thanks, Eric

eric-kruger commented 6 years ago

I figured out where I was making an error after I looked a bit closer at the documentation I was misunderstanding n.e and n.c. Thanks