mcnemarQ | R Documentation |
Pairwise tests are conducted using the two-tailed binomial test. These tests can be conducted after Cochran's Q test.
mcnemarQ(X, na.rm = TRUE, quiet = FALSE, digits = getOption("digits"))
X |
matrix of |
na.rm |
should |
quiet |
if |
digits |
significant digits (to display) |
Test results for all McNemar pairwise tests conducted via the binomial test
Cochran, W. G. (1950). The comparison of percentages in matched samples. Biometrika, 37, 256-266.
McNemar, Q. (1947). Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2), 153-157.
Meyners, M., Castura, J.C., & Carr, B.T. (2013). Existing and new approaches for the analysis of CATA data. Food Quality and Preference, 30, 309-319, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.foodqual.2013.06.010")}
cochranQ
data(bread)
# McNemar's exact pairwise test for all product pairs
# on the first 25 consumers and the first attribute ("Fresh")
mcnemarQ(bread$cata[1:25,,1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.