Last chance! 50% off unlimited learning
Sale ends in
pairwiseNominalMatrix(x, compare = "row", fisher = TRUE, gtest = FALSE, chisq = FALSE, method = "fdr", correct = "none", digits = 3, ...)
"row"
, treats the rows as the grouping variable.
If "column"
, treats the columns as the grouping variable."TRUE"
, conducts fisher exact test."TRUE"
, conducts G-test."TRUE"
, conducts Chi-square test of association.p.adjust
.GTest
.fisher.test
,
GTest
, or chisq.test
.pairwiseMcnemar
, groupwiseCMH
,
nominalSymmetryTest
,
pairwiseNominalIndependence
### Independence test for a 4 x 2 matrix
data(Anderson)
fisher.test(Anderson)
Anderson = Anderson[(c("Heimlich", "Bloom", "Dougal", "Cobblestone")),]
PT = pairwiseNominalMatrix(Anderson,
fisher = TRUE,
gtest = FALSE,
chisq = FALSE)$Adjusted
PT
library(multcompView)
multcompLetters(PT)
Run the code above in your browser using DataLab