Description Usage Arguments Value
The uplift curve is analgous to the ROC curve used to evaluate the performance of binary classification models. We order the observations by the predicted treatment effect and then compare the cumulative lift against the observed treatment effect. The observed treatment effect is the lift we would achieve using random targeting or selection.
1 | uplift(y, tmt, pred_te, bins = 10)
|
y |
a vector of outcomes. |
tmt |
a vector indicating which units received treatment. |
pred_te |
a vector of predicted treatment effects. |
bins |
the number of bins to use for building the uplift curve. More
bins will result in a smoother curve, but this is limited by the number of
distinct values |
a hete_uplift
object with:
uplift_curve |
A |
q |
The q/qini score of the model. |
ate_observed |
The observed average treatment effect. |
ate_predicted |
The mean predicted treatment effect. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.