Description Usage Arguments References Examples

2 by 2 table. Test either a shift from 0 to 1 or a shift from 1 to 0 before treatment and after treatment.

*p_{1+}=P_{10}+P_{11}, p_{+1}=P_{01}+P_{11}*

Ho: *p_{1+} = p_{+1}*

Ha: not equal

The test is finding whether there is a categorical shift after treatment.

1 | ```
McNemar.Test(alpha, beta, psai, paid)
``` |

`alpha` |
significance level |

`beta` |
power = 1-beta |

`psai` |
the ratio of p01/p10 |

`paid` |
the sum p10+p01 |

Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003

1 2 3 | ```
Example.6.4.3<-McNemar.Test(0.05,0.2,0.2/0.5,.7)
Example.6.4.3
# 59
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.