powered by
calculate phi coefficient of two binary variables
stat_phi(x)
phi coefficient
2x2 matrix or dataframe
data <- matrix(c(10, 8, 14, 18), nrow = 2) stat_phi(data)
Run the code above in your browser using DataLab