Learn R Programming

vcd (version 0.1-3.5)

assoc.stats: 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.testsa 2x3 table with the chisquare statistics.
  • phiThe phi-coefficient.
  • contThe contingency coefficient.
  • cramerCramer's V.

References

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

Examples

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

Run the code above in your browser using DataLab