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

1 2 3 |

`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 |

Object of class `power.htest`

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

`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.

Claus Ekstrom claus@rprimer.dk

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

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)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ 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.