Description Usage Arguments Details Examples
View source: R/data-statistics.R
Computes the (conditional) mutual information between two variables. If
z
is not NULL
then returns the conditional mutual information,
I(X;Y|Z). Otherwise, returns mutual information, I(X;Y).
1 |
x |
A length one character. |
y |
A length one character. |
dataset |
A data frame. Must contain x, y and, optionally, z columns. |
z |
A character vector. |
unit |
A character. Logarithm base. See |
I(X;Y|Z) = H(X|Z) + H(Y|Z) - H(X,Y,Z) - H(Z), where H() is Shannon's entropy.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.