posthocChiSq: posthocChiSq

Description Usage Arguments Value Examples

Description

posthocChiSq computes standard pairwise chi-squared tests and provides raw and adjusted p-values.

Usage

1
2
posthocChiSq(chiObject, control = c("none", "fdr", "BH", "BY", "bonferroni",
  "holm", "hochberg", "hommel"), digits = 4)

Arguments

digits

Value

data.frame containing raw and adjusted p-values.

Examples

1
2
3
4
5
6
example_df <- data.frame(x1 = sample(c('m', 'f'), 50, replace = T),
                         x2 = sample(letters[1:4], 50, replace = T))
test <- with(example_df, chisq.test(x2, x1))
posthocChiSq(chiObject = test)
test2 <- with(example_df, chisq.test(x1, x2))
posthocChiSq(chiObject = test2, control="holm")

TaylorAndrew/atPostAnalyze documentation built on May 9, 2019, 4:23 p.m.