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.

tadaa_chisq(data, x, y, correct = TRUE, print = c("df", "console", "html",



A data.frame.


A vector of categorial data (factor or character).


Another vector of categorial data (also factor or character).


Apply Yate's continuity correction for 2x2 tables, passed to stats::chisq.test. Defaults to TRUE.


Print method, default df: A regular data.frame. Otherwise passed to pixiedust::sprinkle_print_method for fancyness.


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.

See also

Other Tadaa-functions: tadaa_aov, tadaa_kruskal, tadaa_levene, tadaa_nom, tadaa_normtest, tadaa_one_sample, tadaa_ord, tadaa_pairwise_gh, tadaa_pairwise_tukey, tadaa_pairwise_t, tadaa_t.test, tadaa_wilcoxon


tadaa_chisq(ngo, abschalt, geschl)
#> statistic p.value parameter #> 1 4.7701288 0.028957659 1 #> method OR #> 1 Pearson's Chi-squared test with Yates' continuity correction 0.54945055 #> phi #> 1 0.14744196
tadaa_chisq(ngo, abschalt, jahrgang)
#> statistic p.value parameter method cramers #> 1 0.54388304 0.76189882 2 Pearson's Chi-squared test 0.047020279