powered by
Obtains the Miettinen-Nurminen score confidence interval for two-sample odds ratio possibly with stratification.
mnOddsRatioCI( n1 = NA_real_, y1 = NA_real_, n2 = NA_real_, y2 = NA_real_, cilevel = 0.95 )
A list with two components:
data A data frame containing the input sample size and number of responses for each treatment group. It has the following variables:
data
n1: The sample size for the active treatment group.
n1
y1: The number of responses for the active treatment group.
y1
n2: The sample size for the control group.
n2
y2: The number of responses for the control group.
y2
estimates: A data frame containing the point estimate and confidence interval for odds ratio. It has the following variables:
estimates
scale: The scale of treatment effect.
scale
estimate: The point estimate.
estimate
lower: The lower limit of the confidence interval.
lower
upper: The upper limit of the confidence interval.
upper
cilevel: The confidence interval level.
cilevel
The sample size for the active treatment group.
The number of responses for the active treatment group.
The sample size for the control group.
The number of responses for the control group.
The confidence interval level.
Kaifeng Lu, kaifenglu@gmail.com
The Mantel-Haenszel sample size weights are used for stratified samples.
mnOddsRatioCI(n1 = c(10,10), y1 = c(4,3), n2 = c(20,10), y2 = c(2,0))
Run the code above in your browser using DataLab