mcnemar.test: McNemar's Chi-squared Test for Count Data.

Description Usage Arguments Value Examples

Description

Performs McNemar's chi-squared test for symmetry of rows and columns in a two-dimensional contingency table.

Usage

1
mcnemar.test(x, y = NULL, correct = TRUE)

Arguments

x

FLVector

y

FLVector

correct

a logical or character indicating whether to apply continuity correction when computing the test statistic. If TRUE,Available methods are EDWARDS(default),YATES.

Value

A list with class "htest"

Examples

1
2
3
4
5
6
flTable <- FLTable("tblMcNemarMulti", "obsid",whereconditions="datasetID=1")
x <- flTable[,"predicted"]
y <- flTable[,"observed"]
ResulthtestObject <- mcnemar.test(x,y)
ResulthtestObject <- mcnemar.test(x,y,FALSE)
ResulthtestObject <- mcnemar.test(x,y,"YATES")

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.