R/stat.R
stat_phi.Rd
calculate phi coefficient of two binary variables
stat_phi(x)
2x2 matrix or dataframe
phi coefficient
data <- matrix(c(10, 8, 14, 18), nrow = 2) stat_phi(data) #> [1] 0.1134241