assign_rule.Rd
Perform the assignment of a treatment rule based on the conditional average
treatment effect (CATE) estimate for each individual in the observed data.
The procedure uses a cost function (see cost_funs
) to decide
whether a given unit should be assigned to the treatment or the control
condition based on the estimated CATE. The treatment decision accommodates
both hard thresholding of the CATE (i.e., analytic evaluation of whether it
exceeds a cutoff) and soft thresholding (i.e., assessing difference of the
CATE estimate from a threshold via a one-sided hypothesis test), with the
latter being the default. Uniqueness of the assigned treatment rule within
segmentation strata is the default, allowing for stratum-specific inference;
however, when such inference is not of interest, this may be disabled.
assign_rule(data_with_cate, segment_fun = cost_threshold, ..., type = c("inferential", "analytic"), unique_rule = TRUE)
data_with_cate | A |
---|---|
segment_fun | A particular choice of function for the assignment of a
treatment rule to a segment based on a specified threshold or constraint.
For details on these, consult the documentation in |
... | Additional arguments passed to |
type | A
|
unique_rule | A |
A data.table
of the full input data
data_cate_est
, augmented with a single additional column rule
that specifies the treatment decision derived from the estimated CATE and a
strategy specified by the segmentation function segment_fun
.