View source: R/ComputeMutualInformation.R
getCMI | R Documentation |
Computes the conditional mutual information I(x_1; x_2 | x_3) using the specified number of bins and spline order.
getCMI(x_1, x_2, x_3, bin = 6, sp_order = 2)
x_1 |
A numeric vector for the first variable. |
x_2 |
A numeric vector for the second variable. Must match 'x_1' length. |
x_3 |
A numeric vector for the condition variable. Must match 'x_1' length. |
bin |
An integer specifying the number of bins. Default is 6. |
sp_order |
An integer specifying the spline order. Must be less than 'bin'. Default is 2. |
A numeric value representing the conditional mutual information (CMI).
x_1 <- rnorm(100)
x_2 <- rnorm(100)
x_3 <- rnorm(100)
getCMI(x_1, x_2, x_3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.