Package 'Modelcharts'

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

Help Index


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")

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

## 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")

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

GAIN_CHART, LIFT_CHART