assocstats {vcd}R Documentation

Association Statistics

Description

Computes the Pearson chi-Squared test, the Likelihood Ratio chi-Squared test, the phi coefficient, the contingency coefficient and Cramer's V.

Usage

assocstats(x)

Arguments

x an r x c table.

Value

A list with components:

chisq_tests a 2 x 3 table with the chi-squared statistics.
phi The phi coefficient.
cont The contingency coefficient.
cramer Cramer's V.

Author(s)

David Meyer David.Meyer@R-project.org

References

Michael Friendly (2000), Visualizing Categorical Data. SAS Institute, Cary, NC.

Examples

data("Arthritis")
tab <- xtabs(~Improved + Treatment, data = Arthritis)
summary(assocstats(tab))

[Package vcd version 1.2-4 Index]