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 absolute value of 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.

Fleiss, J. L. (1981). Statistical methods for rates and proportions (2nd ed). New York: Wiley

Examples

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

[Package vcd version 1.3-1 Index]