calculateDiscreteDiscreteMI: calculate mutual information between a discrete value (X) and...

View source: R/tidyDiscreteDiscreteMI.R

calculateDiscreteDiscreteMIR Documentation

calculate mutual information between a discrete value (X) and a discrete value (Y)

Description

calculate mutual information between a discrete value (X) and a discrete value (Y)

Usage

calculateDiscreteDiscreteMI(
  df,
  groupXVars,
  groupYVars,
  method = "Grassberger",
  ...
)

Arguments

df

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

groupXVars

- the column(s) of the discrete value (X) quoted by vars(...)

groupYVars

- the column(s) of the discrete value (Y) quoted by vars(...)

method

- the method employed - valid options are "Empirical","MontgomerySmith","Compression","Histogram","Entropy","Grassberger"

...

- the other parameters are passed onto the implementations

Value

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


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