View source: R/tidyDiscreteContinuousMI.R
calculateDiscreteContinuousMI_Entropy | R Documentation |
calculate mutual information between a discrete value (X) and a continuous value (Y) using estimates of differential entropy
calculateDiscreteContinuousMI_Entropy( df, discreteVars, continuousVar, entropyMethod = "Quantile", ... )
df |
- may be grouped, in which case the grouping is interpreted as different types of discrete variable |
discreteVars |
- the column(s) of the categorical value (X) quoted by vars(...) |
continuousVar |
- the column of the continuous value (Y) |
entropyMethod |
- the method used to calculate the entropy (see ?tidyinfostats::calculateDiscreteEntropy) - defaults to "Grassberger" |
collect |
- unless TRUE this function will fail on dbplyr tables as there is no SQL implementation |
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.