stat_phi | R Documentation |
calculate phi coefficient of two binary variables
stat_phi(x)
x |
2x2 matrix or dataframe |
phi coefficient
data <- matrix(c(10, 8, 14, 18), nrow = 2)
stat_phi(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.