Learn R Programming

Modelcharts (version 0.1.0)

LIFT_CHART: Functions Lift Chart

Description

Creates a Lift chart.

Usage

LIFT_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 lift chart

See Also

Modelcharts

Examples

Run this code
# NOT RUN {
# Run it and see for yourself
# }
# NOT RUN {
data.tmp<-read.csv(system.file("ext", "testdata.csv", package="Modelcharts"))
LIFT_CHART(data.tmp,data.tmp$Probability,seq(0.95,0,-0.05),data.tmp$Outcome,"Y")
# }

Run the code above in your browser using DataLab