Description Usage Arguments Value Examples
posthocChiSq computes standard pairwise chi-squared tests and provides raw and adjusted p-values.
1 2 | posthocChiSq(chiObject, control = c("none", "fdr", "BH", "BY", "bonferroni",
"holm", "hochberg", "hommel"), digits = 4)
|
digits |
data.frame containing raw and adjusted p-values.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.