View source: R/create_double_lift_data.R
This function creates the requisite data for a double lift chart
1 2 | create_double_lift_data(modelA, modelB, actual, weight = NULL, nbins = 10,
retLabel = FALSE)
|
modelA |
A vector that contains the predictions for Model A - preds will be pro-rated |
modelB |
A vector that contains the predictions for Model B - preds will be pro-rated |
actual |
A vector that contains the actuals that the models are to be compared to |
weight |
A vector that contains the row level weights (exposure,claim count). Defaults to NULL |
nbins |
Passed to the binnarise function - how many equally sized bins should the ratio be cut into |
retLabel |
Keep string labels from binnarise |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.