Type: | Package |
Title: | Classification Model Charts |
Version: | 0.1.0 |
Imports: | dplyr,plotly,stats |
Description: | Provides two important functions for producing Gain chart and Lift chart for any classification model. |
License: | GPL-2 | GPL-3 [expanded from: GPL] |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.0.1 |
NeedsCompilation: | no |
Packaged: | 2018-03-09 13:36:30 UTC; 619036 |
Author: | Badri N Pattanaik [aut], Krishna Harsha K H [cre] |
Maintainer: | Krishna Harsha K H <khkrishnaharsha123@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2018-03-13 11:07:18 UTC |
Gain Chart and Lift Chart
Description
This Package provides two important functions for producing Gain chart and Lift chart for any classification model.
GAIN_CHART()
Creates a gain chart based on calculated probability values and actual outcome.
LIFT_CHART()
creates a lift chart based on calculated probability values and actual outcome.
See Also
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
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")
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
Examples
## Not run:
# Run it and see for yourself
## End(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")