[R] What package to use to calculate odds ratio and the confidence interval?
Nordlund, Dan (DSHS/RDA)
NordlDJ at dshs.wa.gov
Tue Aug 14 20:52:04 CEST 2012
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of C W
> Sent: Tuesday, August 14, 2012 11:18 AM
> To: r-help
> Subject: [R] What package to use to calculate odds ratio and the
> confidence interval?
>
> Hi list,
> I am trying to calculate the sensitivity, specificity, and odds
> ratio(and
> confidence interval).
> Say, my data looks like this
>
> 42.53, 37.56, 40.51, 32.67, 38.19, 81.74, 41.55, 68.94, 59, 63, 54.13,
> 48.85, 50.46, 51.78
>
> Is there any packages in R that does this? Espeically the odds ratio
> confidence interval.
>
> Mike
You need to provide more information than you have. The odds of something happening is the probability of it happening divided by (1-probability). To calculate the odds ratio, you need to have odds for two different groups. I suspect you need to get some local statistical assistance on these concepts before you will get much help on R packages and functions.
Dan
Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204
More information about the R-help
mailing list