Summarise policy-tree leaves with estimated action advantages and sample shares
Source:R/margot_policy_leaf_summary.R
margot_policy_leaf_summary.RdComputes leaf-level summaries for a stored policy tree. Leaf advantages are estimated from doubly robust action scores and are action conditional: treated leaves report the estimated advantage of treatment relative to control, whereas control leaves report the estimated advantage of control relative to treatment.
Usage
margot_policy_leaf_summary(
object,
model_name,
depth = 1L,
weights = NULL,
digits = 3L,
label_mapping = NULL
)Arguments
- object
A
margot_causal_forest()-style object containingresults,covariates, and optionallyweights.- model_name
Outcome/model name, with or without the
model_prefix.- depth
Integer policy-tree depth, usually
1or2.- weights
Optional evaluation weights. Defaults to
object$weights.- digits
Integer; rounding used in formatted labels.
- label_mapping
Optional named list used to label actions.