View source: R/calc_association.r
calc_association | R Documentation |
Computation of association coefficients.
calc_association(
x,
y,
type = c("chi-square", "contingency", "cramers-v", "fisher", "phi")
)
x |
A character vector |
y |
A character vector |
type |
A character single value, that is the type of the association to be computed |
Currently, it is possible to compute the following metrics:
- Contingency association coefficient
- Chi-square test statistic
- Cramer's V association coefficient
- Fisher test statistic
- Phi association coefficent
A numeric single value with the computed value.
calc_association(mtcars$vs,mtcars$am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.