penalized.relative.info: Penalized relative information

Description Usage Arguments Value Examples

Description

Penalized relative information

Usage

1
penalized.relative.info(data, var.x, var.y, alpha = 2)

Arguments

data

A data frame

var.x

The regressor (or predictor) variable (has to be the name of a variable in data)

var.y

The output variable (has to be the name of a variable in data)

alpha

(defaults to 2) A numeric

Value

PenRI(var.y|var.x;alpha) = Sum_(a ~ var.x) P(a)^(alpha) * PointRI(var.y|var.x = a)

Examples

1
2
3
list.pairs <- list(c("cyl","factor"),c("am","factor"),c("vs","factor"),c("gear","factor"))
mtcars2 <- allvariables.type.change(mtcars, list.pairs)
penalized.relative.info(mtcars2,"cyl","gear",3/2)

ahdxb/data.exploration documentation built on May 11, 2019, 11:31 p.m.