This function performs the McNemar test

mcNemar.test(matrix)

Arguments

matrix

Matrix of data

Value

A list with pvalues for alternative hypothesis, statistics, method and data name

Examples

mcNemar.test(matrix(c(10,4,2,7), ncol=2))
#> $data.name #> [1] "matrix(c(10, 4, 2, 7), ncol = 2)" #> #> $statistic #> S Z T #> 6.0000000 -0.6123724 0.6666667 #> #> $p.value #> Exact p-value Asymtotic Normal p-value Asymtotic Chi p-value #> 0.3437500 0.2701457 0.4142162 #> #> $method #> [1] "McNemar" #>