# 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

1 2 3 |

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.