powered by
Augment a chi-squared test and compute phi coefficients
augment_chisq_add_phi(x)
A tibble.
tibble
a chi-squared test as returned by stats::chisq.test()
stats::chisq.test()
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.
stat_cross(), GDAtools::phi.table() or psych::phi()
stat_cross()
GDAtools::phi.table()
psych::phi()
tab <- xtabs(Freq ~ Sex + Class, data = as.data.frame(Titanic)) augment_chisq_add_phi(chisq.test(tab))
Run the code above in your browser using DataLab