smbinning.metrics.plot {smbinning} | R Documentation |
Visualization of a Classification Matrix
Description
It generates four plots after running and saving the output report from smbinning.metrics
.
Usage
smbinning.metrics.plot(df, cutoff = NA, plot = "cmactual")
Arguments
df |
Data frame generated with |
cutoff |
Value of the classifier that splits the data between positive (>=) and negative (<). |
plot |
Plot to be drawn. Options are: 'cmactual' (default),'cmactualrates','cmmodel','cmmodelrates'. |
Examples
# Load library and its dataset
library(smbinning)
smbmetricsdf=smbinning.metrics(dataset=smbsimdf1, prediction="cbs1",
actualclass="fgood", returndf=1)
# Example 1: Plots based on optimal cutoff
smbinning.metrics.plot(df=smbmetricsdf,plot='cmactual')
# Example 2: Plots using user defined cutoff
smbinning.metrics.plot(df=smbmetricsdf,cutoff=600,plot='cmactual')
smbinning.metrics.plot(df=smbmetricsdf,cutoff=600,plot='cmactualrates')
smbinning.metrics.plot(df=smbmetricsdf,cutoff=600,plot='cmmodel')
smbinning.metrics.plot(df=smbmetricsdf,cutoff=600,plot='cmmodelrates')
[Package smbinning version 0.9 Index]