cr.test | R Documentation |
Computes D-squared Cressie-Read test for contingency table and 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>0.
cr.test(x, lambda=2/3)
x |
contingency table. |
lambda |
lambda parameter lambda test Cressie-Read. |
An object of class "htest" containing the following components:
estimates contingency coefficient
the degrees of freedom and lambda parameter
statistic test value
p-value
Krzysztof Trajkowski
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.
chisq.test
fisher.test
# data:
m <- matrix(c(23,32,45,26),2,2)
# Cressie-Read:
cr.test(m)
# Pearson:
cr.test(m,lambda=1)
# Likelihood Ratio:
cr.test(m,lambda=1e-05)
# Freeman-Tukey's:
cr.test(m,lambda=-1/2)
# Neyman's:
cr.test(m,lambda=-2)
# Kullback-Leibler:
cr.test(m,lambda=-0.99999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.