The McNemar asymptotic test

Described in Chapter 8 "The Paired 2x2 Table"

McNemar_asymptotic_test_paired_2x2(n)

Arguments

n

the observed table (a 2x2 matrix)

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Table orientation

In most study designs, rows designate a grouping of the data, for instance, into treatment or exposure groups, while the columns indicate a dichotomous outcome, usually with the first column representing the outcome of interest. This designation of rows and columns may not be relevant in all study designs, please see the introduction to chapter 8 for details.

Examples

McNemar_asymptotic_test_paired_2x2(bentur_2009)
#> The McNemar asymptotic test: P = 0.033895, Z = -2.121
McNemar_asymptotic_test_paired_2x2(cavo_2012)
#> The McNemar asymptotic test: P = 0.033006, Z = -2.132
McNemar_asymptotic_test_paired_2x2(ezra_2010)
#> The McNemar asymptotic test: P = 0.000010, Z =  4.426