# assocstats

##### Association Statistics

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

- Keywords
- category

##### Usage

`assocstats(x)`

##### Arguments

- x
a contingency table, with possibly more than 2 dimensions. In this case, all dimensions except the first two ones are considered as strata.

##### Value

In case of a 2-dimensional table, a list with components:

a \(2 \times 3\) table with the chi-squared statistics.

The *absolute value* of the phi coefficient (only
defined for \(2 \times 2\) tables).

The contingency coefficient.

Cramer's V.

##### 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

```
# NOT RUN {
data("Arthritis")
tab <- xtabs(~Improved + Treatment, data = Arthritis)
summary(assocstats(tab))
assocstats(UCBAdmissions)
# }
```

*Documentation reproduced from package vcd, version 1.4-7, License: GPL-2*