Computes the Pearson chi-Squared test, the Likelihood Ratio chi-Squared test,
the phi coefficient, the contingency coefficient and Cramer's V for
possibly stratified contingency tables.
Usage
assocstats(x)
Value
In case of a 2-dimensional table, a list with components:
chisq_tests
a \(2 \times 3\) table with the
chi-squared statistics.
phi
The absolute value of the phi coefficient (only
defined for \(2 \times 2\) tables).
cont
The contingency coefficient.
cramer
Cramer's V.
In case of higher-dimensional tables, a list of the above mentioned
structure, each list component representing one stratum defined by the
combinations of all levels of the stratum dimensions.
Arguments
x
a contingency table, with possibly more than 2 dimensions. In
this case, all dimensions except the first two ones are considered as strata.