calculateSelfInformation_Histogram: calculate the self information for all values of a discrete...

View source: R/tidyDiscreteSelfInformation.R

calculateSelfInformation_HistogramR Documentation

calculate the self information for all values of a discrete variable in a dplyr friendly way

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

calculateSelfInformation_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)

countVar

- (optional) if this datafram represents summary counts, the columns of the summary variable.

mm

- Apply a miller-madow adjustment to the result? default = TRUE

Value

a dataframe containing the distinct values of the discrete variable, per group, with columns I_x, and method


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