Learn R Programming

MESS (version 0.4-3)

power.mcnemar.test: Power Calculations for Exact and Asymptotic McNemar Test in a 2 by 2 table

Description

Compute power of test, or determine parameters to obtain target power for matched case-control studies.

Usage

power.mcnemar.test(n = NULL, paid = NULL, psi = NULL, sig.level = 0.05, power = NULL, alternative = c("two.sided", "one.sided"), method = c("normal", "exact"))

Arguments

n
Number of observations (number of pairs)
paid
The probability that a case patient is not exposed and that the corresponding control patient was exposed
psi
The odds ratio for exposure in case and control individuals
sig.level
Significance level (Type I error probability)
power
Power of test (1 minus Type II error probability)
alternative
One- or two-sided test
method
Power calculations based on exact or asymptotic test

Value

Object of class power.htest, a list of the arguments (including the computed one) augmented with method and note elements.

References

Duffy, S (1984). Asymptotic and Exact Power for the McNemar Test and its Analogue with R Controls per Case

See Also

mcnemar.test

Examples

Run this code

power.mcnemar.test(n=NULL, paid=.1, psi=2, power=.8, method="normal")
power.mcnemar.test(n=NULL, paid=.1, psi=2, power=.8)



Run the code above in your browser using DataLab