Compute Quantities of Interest (PAPE, PAPEp, PAPDp, AUPEC, GATE, GATEcv) with user defined functions
Source:R/itr_qoi.R
compute_qoi_user.Rd
Compute Quantities of Interest (PAPE, PAPEp, PAPDp, AUPEC, GATE, GATEcv) with user defined functions
Arguments
- itr_function
A user-defined function to create an ITR. The function should take the data as input and return an ITR. The output is a vector of the unit-level binary treatment that would have been assigned by the individualized treatment rule. The default is
NULL
, which means the ITR will be estimated from theestimate_itr
.- Tcv
A vector of the unit-level binary treatment.
- Ycv
A vector of the unit-level continuous outcome.
- tau
A vector of the unit-level continuous score for treatment assignment. We assume those that have tau<0 should not have treatment. Conditional Average Treatment Effect is one possible measure.
- data
A data frame containing the variables of interest.
- ngates
The number of gates to be used in the GATE function.
- budget
The maximum percentage of population that can be treated under the budget constraint.
- ...
Additional arguments to be passed to the user-defined function.