Deprecated in 2.0.0, defunct in 2.1.0 – the whole-table test and the per-cell contributions are
computed directly by tab(), through its test and color arguments. tab_chi2() still works
on an existing tab, reconstructing that plan from the table's own markers.
Arguments
- tabs
- calc
Which elements of the Chi2 summary to compute, as a selection in
c("ctr", "p", "var", "counts"): contributions to variance, pvalue, variance and unweighted count. All of them by default.- comp
Comparison level, when
tab_varsare present : contributions to variance are calculated for each subtable/group (by default,comp = "tab") or for the whole set of tables (comp = "all"). It must be set once and for all the first time you usetab_pctwith rows,tab_ciortab_chi2.- color
The type of colors to print, as a single string:
"no"(the default),"all"(color all cells by their contribution to variance, except mean columns),"all_pct"(all percentage cells), or"auto"(only columns with counts,pct = "all"orpct = "all_tabs").- .deff
Internal pipeline seam. The design-based omnibus grid (one row per subtable x col_var, carrying Rao-Scott's mean generalized design effect), used as the divisor of the
color = "contrib"residual's base when the table's inference basis is not"n".NULL— the default, and every direct call — keeps the unweighted base.