GAIN_CHART {Modelcharts}R Documentation

Functions Gain Chart

Description

Creates a Gain chart.

Usage

GAIN_CHART(INPUT, Probability, cutoffs, Outcome, Event)

Arguments

INPUT

Input data

Probability

Probability values between zero and one

cutoffs

probability cutoffs(c(0.80,0.60,0.40,0.20,0)/c(0.5,0))

Outcome

outcome variable(target variable)

Event

outcome representation ("YES"/"Y"/"1")

Value

A gain chart

See Also

Modelcharts

Examples

## Not run: 
# Run it and see for yourself

## End(Not run)
data.tmp<-read.csv(system.file("ext", "testdata.csv", package="Modelcharts"))
GAIN_CHART(data.tmp,data.tmp$Probability,seq(0.95,0,-0.05),data.tmp$Outcome,"Y")

[Package Modelcharts version 0.1.0 Index]