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

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

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

Usage

1
2
3
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.

Note

uniroot is used to solve power equation for unknowns, so you may see errors from it, notably about inability to bracket the root when invalid arguments are given.

Author(s)

Claus Ekstrom claus@rprimer.dk

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

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


Search within the MESS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.