Description Usage Arguments Value Note See Also Examples
A comfortable wrapper of stats::chisq.test with pretty output and
effect sizes depending on the size of the contingency table:
Phi coefficient and Odds Ratios in case of a 2x2 table, Cramer's V otherwise.
The result is either returned as a broom::tidy data.frame
or prettified using
various pixiedust::sprinkle shenanigans.
1 2 3 4 5 6 7 | tadaa_chisq(
data,
x,
y,
correct = TRUE,
print = c("df", "console", "html", "markdown")
)
|
data |
A |
x |
A vector of categorial data ( |
y |
Another vector of categorial data (also |
correct |
Apply Yate's continuity correction for 2x2 tables,
passed to stats::chisq.test. Defaults to |
print |
Print method, default |
A data.frame
by default, otherwise dust
object,
depending on print
.
The warning message in case of low samples size and possibly incorrect approximation is suppressed silently.
Other Tadaa-functions:
tadaa_aov()
,
tadaa_kruskal()
,
tadaa_levene()
,
tadaa_nom()
,
tadaa_one_sample()
,
tadaa_ord()
,
tadaa_pairwise_tukey()
,
tadaa_pairwise_t()
,
tadaa_t.test()
,
tadaa_wilcoxon()
1 2 3 | tadaa_chisq(ngo, abschalt, geschl)
tadaa_chisq(ngo, abschalt, jahrgang)
|
# A tibble: 1 x 6
statistic p.value parameter method OR phi
<dbl> <dbl> <int> <chr> <dbl> <dbl>
1 4.77 0.0290 1 Pearson's Chi-squared test with Yates~ 0.549 0.147
# A tibble: 1 x 5
statistic p.value parameter method cramers
<dbl> <dbl> <int> <chr> <dbl>
1 0.544 0.762 2 Pearson's Chi-squared test 0.0470
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.