R/mcnemar.R

# An implementation of McNemar 1945

.mcnemar.test <- function(ak, bk, ck, dk) .mcnemar.impl(bk,ck)

.mcnemar.impl <- function(bk, ck) {
  b <- sum(bk)
  c <- sum(ck)
  (b - c)^2/(b + c)
}

Try the clust.bin.pair package in your browser

Any scripts or data that you put into this service are public.

clust.bin.pair documentation built on May 2, 2019, 3:58 p.m.