View source: R/tidyDiscreteContinuousMI.R
calculateDiscreteContinuousMI_KWindow | R Documentation |
This is based on the technique described here:
calculateDiscreteContinuousMI_KWindow( df, discreteVars, continuousVar, k_05 = 4, ... )
df |
- may be grouped, in which case the value is interpreted as different types of continuous variable |
discreteVars |
- the column(s) of the categorical value (X) quoted by vars(...) |
continuousVar |
- the column of the continuous value (Y) |
k_05 |
- half the sliding window width - this should be a small number like 1,2,3. |
B. C. Ross, “Mutual information between discrete and continuous data sets,” PLoS One, vol. 9, no. 2, p. e87357, Feb. 2014 [Online]. Available: http://dx_doi.org/10.1371/journal.pone.0087357 but with the important simplification of using the sliding window K elements wide rather than the k nearest neighbours. This is empirically shown to have little difference on larger datasets and makes this algorithm simple to implement in dbplyr tables.
a dataframe containing the disctinct values of the groups of df, and for each group a mutual information column (I). If df was not grouped this will be a single entry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.