Description Usage Arguments Value Author(s) Examples
This function provides a basic exploratory tool for uplift modeling, by computing the average value of the response variable for each predictor and treatment assignment.
1 2 3 4 5 6 7 |
formula |
a formula expression of the form response ~ predictors. A special term of the form |
data |
a data.frame in which to interpret the variables named in the formula. |
subset |
expression indicating which subset of the rows of data should be included. All observations are included by default. |
na.action |
a missing-data filter function. This is applied to the model.frame after any subset argument has been used. Default is |
nbins |
the number of bins created from numeric predictors. The bins are created based on quantiles, with a default value of 4 (quartiles). |
continuous |
specifies the threshold for when a variable is considered to be continuous (when there are at least |
direction |
possible values are |
A list of matrices, one for each variable. The columns represent: the number of responses over the control group, the number of the responses over the treated group, the average response for the control, the average response for the treatment, and the uplift (difference between treatment and control average response).
Leo Guelman <leo.guelman@gmail.com>
1 2 3 4 5 6 7 |
Loading required package: RItools
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: MASS
Loading required package: coin
Loading required package: survival
Loading required package: tables
Loading required package: Hmisc
Loading required package: lattice
Loading required package: Formula
Loading required package: ggplot2
Attaching package: 'Hmisc'
The following objects are masked from 'package:base':
format.pval, round.POSIXt, trunc.POSIXt, units
Loading required package: penalized
Welcome to penalized. For extended examples, see vignette("penalized").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.