Learn R Programming

eHDPrep (version 1.3.3)

discrete.mi: Calculate mutual information of a matrix of discrete values

Description

Compute mutual information between all rows of a matrix containing discrete outcomes.

Usage

discrete.mi(mat, progress.bar = FALSE)

Value

A lower triangular matrix where element [i,j] contains the mutual information in bits between row i and row j of the input matrix

Arguments

mat

A matrix of discrete values

progress.bar

Outputs status to terminal when set to 'text', or no status updates are output when set to FALSE.

Author

Alexander Lyulph Robert Lubbock, Ian Overton

Details

Note that only the lower triangle of the matrix is populated for speed, as the result is symmetric. Takes a matrix as input.