Learn R Programming

mcStats (version 0.1.0)

showMcNemarTest: Visualize results of McNemar's Test

Description

relevant parameters are passed to mcnemar.test

Usage

showMcNemarTest(x, y = NULL, correct = TRUE, verbose = 1)

Arguments

x

two dimensional contingency table as a matrix or a factor object

y

factor object, ignored if x is a matrix

correct

logical indicating whether or not to perform continuity correction

verbose

if verbose > 0 the resulting graph is printed

Value

results of call to mcnemar.test

Examples

Run this code
# NOT RUN {
Performance <-
matrix(c(794, 86, 150, 570),
    nrow = 2,
    dimnames = list("1st Survey" = c("Approve", "Disapprove"),
                     "2nd Survey" = c("Approve", "Disapprove")))
showMcNemarTest(Performance)

# }

Run the code above in your browser using DataLab