Skip to contents

McNemar Test

Usage

test_mcnemar(data, x, y)

Arguments

data

data

x

var 1

y

var 2

Value

results

Examples

A <- c(1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1)
B <- c(0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0)
data <- data.frame(A, B)
test_mcnemar(data, A, B)
#> [1] 0.125