View source: R/tidyBinaryInfoStats.R
calculateBinaryMI | R Documentation |
The purpose of this is to make it possible to calculate MI in a DBPLYR sql table
calculateBinaryMI(df)
df |
a dataframe containing one observation per row & full confusion matrix and marginal probabilities: i.e. p_x1, p_x0, p_y1, p_y0, p_x1y1, p_x0y1, p_x1y0, and p_x0y0 columns (see probabilitiesFromCounts) |
the datatable with additional columns for entropy, mutual information, pointwise mutual information and normalised pointwise mutual information for all various combinations of outcome
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.