View source: R/tidyDiscreteEntropy.R
calculateDiscreteEntropy_InfoTheo | R Documentation |
calculate entropy of an optionally discrete value (X) using a infotheo library
calculateDiscreteEntropy_InfoTheo( df, groupVars, infoTheoMethod = "mm", collect = FALSE, ... )
df |
- may be grouped, in which case the grouping is interpreted as different types of discrete variable |
groupVars |
- the column of the discrete value (X) |
infoTheoMethod |
- the method of the entropy estimator ("mm","emp","shrink","sg") |
collect |
- if false (the default) this will fail on a dbplyr table as this is not supported in SQL |
a dataframe containing the disctinct values of the groups of df, and for each group an entropy value (H). 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.