coeff: The contingency coefficient

View source: R/coeff.R

coeffR Documentation

The contingency coefficient

Description

Computes contingency coefficient: Q_Yulea, Phi, C-Pearson, C_adj, V-Cramer, T-Tschuprow for 2x2 table or C-Pearson, C_adj, V-Cramer, T-Tschuprow for rxc table where r>2 or c>2.

Usage

coeff(x)

Arguments

x

contingency table.

Author(s)

Krzysztof Trajkowski

References

Noel Cressie and Timothy R. C. Read (1984). Multinomial Goodness-of-Fit Test. Journal of the Royal Statistical Society. Series B (Methodological), Vol. 46, No. 3 (1984), 440-464.

See Also

chisq.test assocstats

Examples

# data:
m <- matrix(c(23,32,45,26),2,2)
# contingency coefficient:
coeff(m)

krzysiektr/CressieReadTest documentation built on April 3, 2024, 11:01 p.m.