calculateDiscreteEntropy_Histogram: calculate entropy of an optionally discrete value (X) using a...

View source: R/tidyDiscreteEntropy.R

calculateDiscreteEntropy_HistogramR Documentation

calculate entropy of an optionally discrete value (X) using a histogram approach

Description

see: R. de Matos Simoes and F. Emmert-Streib, “Influence of statistical estimators of mutual information and data heterogeneity on the inference of gene regulatory networks,” PLoS One, vol. 6, no. 12, p. e29279, Dec. 2011 [Online]. Available: http://dx.doi.org/10.1371/journal.pone.0029279

Usage

calculateDiscreteEntropy_Histogram(
  df,
  groupVars,
  countVar = NULL,
  mm = TRUE,
  ...
)

Arguments

df

- may be grouped, in which case the grouping is interpreted as different types of discrete variable

groupVars

- the columns of the discrete value quoted by the vars() function (e.g. ggplot facet_wrap)

mm

- Apply a miller-madow adjustment to the result

Value

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


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.