assoc.stats {vcd}R Documentation

Association Statistics

Description

Computes the Chi-Square test, the Likelihood Ratio Chi-Square test, the phi-coefficient, the the contingency coefficient and Cramer's V.

Usage

assoc.stats(x)

Arguments

x a rxc-table.

Value

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.

Author(s)

David Meyer
david.meyer@ci.tuwien.ac.at

References

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

Examples

data(Arthritis)
tab <- xtabs(~Improved + Treatment, data = Arthritis)
summary(assoc.stats(tab))

[Package Contents]