powered by
Similar to pairwise.wilcox.test and pairwise.t.test, calculate pairwise comparisons of a nominal variable between group levels with corrections for multiple testing.
pairwise.wilcox.test
pairwise.t.test
pairwise.fisher.test(x, g, p.adjust.method, ...)
Response vector, nominal (or ordinal).
Grouping vector or factor.
Method for adjusting \(p\)-values (see p.adjust).
p.adjust
Additional arguments to pass to fisher.test.
fisher.test
Object of class "pairwise.htest"
fisher.test, p.adjust, pairwise.wilcox.test, pairwise.t.test
# NOT RUN { set.seed(1977) x <- factor(abs(round(rnorm(99, 0, 1)))) g <- factor(round(runif(99, 0, 2))) pairwise.fisher.test(x, g, p.adjust.method = "holm") # }
Run the code above in your browser using DataLab