rig: Relative Information Gain (RIG)

rigR Documentation

Relative Information Gain (RIG)

Description

Relative Information Gain (RIG)

Usage

rig(pred, rvar, lev, crv = 1e-07, na.rm = TRUE)

Arguments

pred

Prediction or predictor

rvar

Response variable

lev

The level in the response variable defined as success

crv

Correction value to avoid log(0)

na.rm

Logical that indicates if missing values should be removed (TRUE) or not (FALSE)

Details

See https://radiant-rstats.github.io/docs/model/evalbin.html for an example in Radiant

Value

RIG statistic

See Also

evalbin to calculate results

summary.evalbin to summarize results

plot.evalbin to plot results

Examples

rig(runif(20000), dvd$buy, "yes")
rig(ifelse(dvd$buy == "yes", 1, 0), dvd$buy, "yes")

radiant.model documentation built on Oct. 16, 2023, 9:06 a.m.