Description Usage Arguments Value Examples
To simplify the task of comparing variables, this calculates a matrix of mutual information values from each pairwise combination of the variables selected. If 6 variables are selected, that would yield a table with 15 rows (choose(6,2)), and 3 columns.
1 | mutual_info_matrix(.data, ..., normalized = FALSE, na.rm = FALSE)
|
.data |
A tibble with the columns of interest |
... |
a selection of columns, selected in the same way as select |
normalized |
if TRUE, scale from 0 to 1 |
na.rm |
remove all rows with NA values in at least one of the columns |
a 3 column tibble with each pairwise combination and its calculated mutual information
1 2 3 | # make an all-character version of mtchars
mt_tib <- as_tibble(mtcars) %>% mutate_all(as.character)
mutual_info_matrix(mt_tib, 8:11)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.