Description Usage Arguments Value Examples
Relative information
1 | relative.info(data, var.x, var.y, x.value)
|
data |
A data frame |
var.x |
The regressor (or predictor) variable (has to be the name of a variable in |
var.y |
The output variable (has to be the name of a variable in |
x.value |
(optional) The value of |
If x.value
is specified, returns
PRI(var.y|var.x = x.value) = 1 - H(var.y|var.x = x.value)/H(var.y).
If x.value
is not specified, returns RI(var.y|var.x) = MI(var.x,var.y)/H(var.y)
1 2 | relative.info(data = mtcars, var.x = "cyl", var.y = "mpg")
relative.info(data = mtcars, var.x = "cyl", var.y = "mpg", x.value = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.