assoc.stats {vcd} | R Documentation |
Computes the Chi-Square test, the Likelihood Ratio Chi-Square test, the phi-coefficient, the the contingency coefficient and Cramer's V.
assoc.stats(x)
x |
a rxc-table. |
A list with components:
chisq.tests |
a 2x3 table with the chisquare statistics. |
phi |
The phi-coefficient. |
cont |
The contingency coefficient. |
cramer |
Cramer's V. |
David Meyer
david.meyer@ci.tuwien.ac.at
Michael Friendly (2000), Visualizing Categorical Data. SAS Institute, Cary, NC.
data(Arthritis) tab <- xtabs(~Improved + Treatment, data = Arthritis) summary(assoc.stats(tab))