Description Usage Arguments Value
Validates predicted probabilities against a set of observed (binary) outcomes.
1 2 3 4 |
prob |
Vector of predicted probabilities. |
y |
Vector of binary (i.e., 0/1) outcomes. If |
pos.class |
Numeric/character string specifying which values in |
cumulative |
Logical indicating whether or not to compute cumulative
lift (i.e., gain). Default is |
nbins |
Integer specifying the number of bins to use when computing
lift. Default is 0, which corresponds to no binning. For example, setting
|
x |
An object of class |
refline.col |
The color to use for the reference line. Default is
|
refline.lty |
The type of line to use for the reference line. Default is
|
refline.lwd |
The width of the reference line. Default is 1. |
... |
Additional optional argument to be passed on to other methods. |
A "lift"
object, which is essentially a list with the
following components:
"lift"
A numeric vector containing the computed lift values.
"prop"
The corresponding proportion of cases associated with each lift value.
"cumulative"
Same value as that supplied via the
cumulative
argument. (Used by the plot.lift()
method.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.