McNemar.Test {TrialSize} | R Documentation |
McNemar Test in 2 by 2 table
Description
2 by 2 table. Test either a shift from 0 to 1 or a shift from 1 to 0 before treatment and after treatment.
Ho:
Ha: not equal
The test is finding whether there is a categorical shift after treatment.
Usage
McNemar.Test(alpha, beta, psai, paid)
Arguments
alpha |
significance level |
beta |
power = 1-beta |
psai |
the ratio of p01/p10 |
paid |
the sum p10+p01 |
References
Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003
Examples
Example.6.4.3<-McNemar.Test(0.05,0.2,0.2/0.5,.7)
Example.6.4.3
# 59
[Package TrialSize version 1.4 Index]