| zstatRateDiff | R Documentation |
Obtains the Miettinen-Nurminen score test statistic for two-sample rate difference possibly with stratification.
zstatRateDiff(t1, y1, t2, y2, rateDiffH0 = 0)
t1 |
The exposure for the active treatment group. |
y1 |
The number of events for the active treatment group. |
t2 |
The exposure for the control group. |
y2 |
The number of events for the control group. |
rateDiffH0 |
The rate difference under the null hypothesis. Defaults to 0. |
The Mantel-Haenszel weights are used for stratified samples.
The value of the score test statistic.
Kaifeng Lu, kaifenglu@gmail.com
zstatRateDiff(t1 = c(10, 10), y1 = c(4, 3),
t2 = c(20, 10), y2 = c(2, 0), rateDiffH0 = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.