Table of performance of an uplift model. This table is used in order to vizualise the performance of an uplift model and to compute the qini coefficient.
data: a data frame containing the response, the treatment and predicted uplift.
treat: a binary (numeric) vector representing the treatment assignment (coded as 0/1).
outcome: a binary response (numeric) vector (coded as 0/1).
prediction: a predicted uplift (numeric) vector to sort the observations from highest to lowest uplift.
nb.group: if equal.intervals is set to true, the number of groups of equal observations in which to partition the data set to show results.
equal.intervals: flag for using equal intervals (with equal number of observations) or the true ranking quantiles which result in an unequal number of observations in each group.
rank.precision: precision for the ranking quantiles. Must be 1 or 2. If 1, the ranking quantiles will be rounded to the first decimal. If 2, to the second decimal.
Returns
a table with descriptive statistics related to an uplift model estimator.
References
Radcliffe, N. (2007). Using control groups to target on predicted lift: Building and assessing uplift models. Direct Marketing Analytics Journal, An Annual Publication from the Direct Marketing Association Analytics Council, pages 14-21.