[R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread C W
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

Re: [R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@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

Re: [R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread C W
Suppose my results comes out like this, 40% 40% Total No disease 131 75 206 Have disease 27 6 33 239 My odds ratio: 27/(27+131))/(131/(27+131)) = 0.206 I want to calculate the confidence interval for it. Mike On Tue, Aug 14, 2012 at 2:52 PM, Nordlund, Dan (DSHS/RDA)

Re: [R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread C W
The table did not come out on rich text format. So what I wrote was, 40%40% Total No disease 131 75 206 Have diease 27 6 33 239 My odds ratio: 27/(27+131))/(131/(27+131)) = 0.206 I am

Re: [R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread Viechtbauer Wolfgang (STAT)
This is not an odds ratio. You simply calculated 27/131 = .206, which is the odds of having the disease given 40%. You can calculate a confidence interval for this with: exp(log(27/131) - 1.96 * sqrt(1/27 - 1/(27+131))) exp(log(27/131) + 1.96 * sqrt(1/27 - 1/(27+131))) which yields (0.146,

Re: [R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread Nordlund, Dan (DSHS/RDA)
What you presented below is not an odds ratio, but simply the odds of disease when some measure is less than 40%. But you can use the oddsratio() function from the epitools package to do the calculations that you want. Hope this is helpful, Dan Daniel J. Nordlund Washington State Department

Re: [R] What package to use to calculate odds ratio and the confidence interval?

2012-08-14 Thread arun
Hi, Please check this link: http://www.r-bloggers.com/computing-odds-ratios-in-r/  Also,  http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=HH:odds.ratio A.K. - Original Message - From: C W tmrs...@gmail.com To: r-help r-help@r-project.org Cc: Sent: Tuesday, August 14, 2012 2:18 PM