Learn R Programming

MMDai (version 1.2.0)

MutualInfo: mutual information

Description

This function is used to calculate the mutual information (MI) and maximal information coefficient (MIC) between two variables.

Usage

MutualInfo(theta, psi, v1, v2)

Arguments

theta

- vector of probability for each component

psi

- specific probability for each variable in each component

v1

- first variable

v2

- second variable

Value

MI - mutual information between two variables

MIC - maximal information coefficient between two variables