pwr_mcnemar: Sample Size and Power for McNemar's Test

Description Usage Arguments Details References Examples

Description

Computes sample size or power for McNemar's test for paired nominal data.

Usage

1
pwr_mcnemar(p10, p01, alpha = 0.05, n, power)

Arguments

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 is missing.

power

Statistical power. Cannot be left blank if n is missing.

Details

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

References

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.

Examples

1
2
pwr.mcnemar(0.05, 0.45, power = 0.8)
pwr.mcnemar(0.05, 0.45, n = 22)

Ajfrick/AVRCHelp documentation built on May 28, 2019, 1:34 a.m.