
This function estimates the Population Average Prescription Effect with and without a budget constraint. The details of the methods for this design are given in Imai and Li (2019).
PAPEcv(T, That, Y, ind, budget = NA, centered = TRUE)
A list that contains the following items:
The estimated Population Average Prescription Effect.
The estimated standard deviation of PAPE.
A vector of the unit-level binary treatment receipt variable for each sample.
A matrix where the i
th column is the unit-level binary treatment that would have been assigned by the
individualized treatment rule generated in the i
th fold. If budget
is specified, please ensure
that the percentage of treatment units of That is lower than the budget constraint.
The outcome variable of interest.
A vector of integers (between 1 and number of folds inclusive) indicating which testing set does each sample belong to.
The maximum percentage of population that can be treated under the budget constraint. Should be a decimal between 0 and 1. Default is NA which assumes no budget constraint.
If TRUE
, the outcome variables would be centered before processing. This minimizes
the variance of the estimator. Default is TRUE
.
Michael Lingzhi Li, Technology and Operations Management, Harvard Business School mili@hbs.edu, https://www.michaellz.com/;
Imai and Li (2019). “Experimental Evaluation of Individualized Treatment Rules”,
T = c(1,0,1,0,1,0,1,0)
That = matrix(c(0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1), nrow = 8, ncol = 2)
Y = c(4,5,0,2,4,1,-4,3)
ind = c(rep(1,4),rep(2,4))
papelist <- PAPEcv(T, That, Y, ind)
papelist$pape
papelist$sd
Run the code above in your browser using DataLab