Title: | Classification Model Charts |
---|---|
Description: | Provides two important functions for producing Gain chart and Lift chart for any classification model. |
Authors: | Badri N Pattanaik [aut], Krishna Harsha K H [cre] |
Maintainer: | Krishna Harsha K H <[email protected]> |
License: | GPL |
Version: | 0.1.0 |
Built: | 2025-02-11 03:41:58 UTC |
Source: | https://github.com/cran/Modelcharts |
Creates a Gain chart.
GAIN_CHART(INPUT, Probability, cutoffs, Outcome, Event)
GAIN_CHART(INPUT, Probability, cutoffs, Outcome, Event)
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") |
A gain chart
## 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")
## 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")
Creates a Lift chart.
LIFT_CHART(INPUT, Probability, cutoffs, Outcome, Event)
LIFT_CHART(INPUT, Probability, cutoffs, Outcome, Event)
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") |
A lift chart
## 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")
## 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")
This Package provides two important functions for producing Gain chart and Lift chart for any classification model.
Creates a gain chart based on calculated probability values and actual outcome.
creates a lift chart based on calculated probability values and actual outcome.