augment_chisq_add_phi | R Documentation |
Augment a chi-squared test and compute phi coefficients
augment_chisq_add_phi(x)
x |
a chi-squared test as returned by |
Phi coefficients are a measurement of the degree of association between two binary variables.
A value between -1.0 to -0.7 indicates a strong negative association.
A value between -0.7 to -0.3 indicates a weak negative association.
A value between -0.3 to +0.3 indicates a little or no association.
A value between +0.3 to +0.7 indicates a weak positive association.
A value between +0.7 to +1.0 indicates a strong positive association.
A tibble
.
stat_cross()
, GDAtools::phi.table()
or psych::phi()
tab <- xtabs(Freq ~ Sex + Class, data = as.data.frame(Titanic))
augment_chisq_add_phi(chisq.test(tab))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.