| assocstats {vcd} | R Documentation |
Computes the Pearson chi-Squared test, the Likelihood Ratio chi-Squared test, the phi coefficient, the contingency coefficient and Cramer's V.
assocstats(x)
x |
an |
A list with components:
chisq_tests |
a |
phi |
The absolute value of the phi coefficient. |
cont |
The contingency coefficient. |
cramer |
Cramer's V. |
David Meyer David.Meyer@R-project.org
Michael Friendly (2000), Visualizing Categorical Data. SAS Institute, Cary, NC.
Fleiss, J. L. (1981). Statistical methods for rates and proportions (2nd ed). New York: Wiley
data("Arthritis")
tab <- xtabs(~Improved + Treatment, data = Arthritis)
summary(assocstats(tab))