powered by
Obtains the Miettinen-Nurminen score test statistic for two-sample odds ratio possibly with stratification.
zstatOddsRatio( oddsRatioH0 = 1, n1 = NA_real_, y1 = NA_real_, n2 = NA_real_, y2 = NA_real_ )
The value of the score test statistic.
The odds ratio under the null hypothesis. Defaults to 1.
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.
Kaifeng Lu, kaifenglu@gmail.com
The Mantel-Haenszel sample size weights are used for stratified samples.
zstatOddsRatio(oddsRatioH0 = 1, 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