Description Usage Arguments Details References Examples
Computes sample size or power for McNemar's test for paired nominal data.
1 | pwr_mcnemar(p10, p01, alpha = 0.05, n, power)
|
p10 |
Probability of pre-test success and post-test failure. See details. |
p01 |
Probability of pre-test failure and post-test success. See details. |
alpha |
Specified significance level. Defaults to 0.05. |
n |
Sample size. Cannot be left blank if |
power |
Statistical power. Cannot be left blank if |
H0: Both groups have the same success probability. H1: The success probability is not equal between the Groups.
Post Success Failure Success p11 p10 Pre Failure p01 p00
github/bgreenwell For Code
Connor R. J. 1987. Sample size for testing differences in proportions for the paired-sample design. Biometrics 43(1):207-211. page 209.
1 2 | pwr.mcnemar(0.05, 0.45, power = 0.8)
pwr.mcnemar(0.05, 0.45, n = 22)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.