| association_matrix | R Documentation |
Computes pairwise association for data with numeric and categorical
variables: Spearman correlation for numeric–numeric pairs, bias-corrected
Cramér's V for categorical–categorical pairs, and the correlation ratio
\eta (on ranks) for numeric–categorical pairs. Pairwise complete
observations are used.
association_matrix(data, vars = NULL)
data |
A data frame. |
vars |
Optional subset of variables. |
A symmetric matrix with ones on the diagonal.
Bergsma, W. (2013). A bias-correction for Cramér's V and Tschuprow's T. Journal of the Korean Statistical Society, 42(3), 323–328. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jkss.2012.10.002")}
round(association_matrix(iris), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.