mixed_assoc | R Documentation |
Calculate a pairwise association between all variables in a data-frame. In particular nominal vs nominal with Chi-square, numeric vs numeric with Pearson correlation, and nominal vs numeric with ANOVA. Adapted from https://stackoverflow.com/a/52557631/590437
mixed_assoc(df, cor_method = "spearman", adjust_cramersv_bias = TRUE)
df |
a data.frame |
cor_method |
the method to use, one of |
adjust_cramersv_bias |
Use bias corrected Cramer's V as described in |
a list with two elements:
associations
a data.frame with the pairwise association between each variable
assoc_matrix
a square matrix of association scores between each variable, with dimensions
equal to the number of variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.