Description Usage Arguments Examples
Adapted from QiniTable in the tools4uplift package by Florian Zettelmeyer to ensure that the n-tiles are calculated based on the treatment observations, not the stacked observations..
1 |
data: |
a data frame containing the treatment, the outcome and the predictors. |
treat: |
name of a binary (numeric) vector representing the treatment assignment (coded as 0/1) |
outcome: |
name of a binary response (numeric) vector (coded as 0/1) |
prediction: |
a score to sort the observations from highest to lowest uplift or propensity. |
nb.group: |
(optional, default = 10) |
1 2 3 4 5 6 7 | QiniTable(
expdata_stacked.test,
treat = "ad",
outcome = "converted",
prediction = "score_logitFit_treat",
nb.group = 20
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.