Description Usage Arguments Value See Also Examples
Compute the lift and cumulative lift.
1 2 | compute_lift(data, obs = "obs", pos_class = "Yes",
quantile = "quantile", nb_quantiles = 20)
|
data |
A dataframe with the observed class, the probabilities for the positive class and the quantiles. |
obs |
A string (default = "obs"). The column's name of the observed class. |
pos_class |
A string (default = "Yes"). How the positive class is coded. |
quantile |
A string (default = "quantile"). The column's name of the quantiles. |
nb_quantiles |
An integer (default = 20). The number of quantiles computed. |
A dataframe with the lift and the cumulative lift computed for each quantile.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.