Flip CATE Estimates for Selected Outcomes in GRF Model Results
Source:R/margot_flip_forests.R
margot_flip_forests.Rd
This function post-processes the results from margot_causal_forest to flip CATE estimates, RATE results, QINI RATE results, and QINI curves for selected outcomes. This is useful when you want to ensure consistent interpretation of effects across differently coded outcomes.
Arguments
- model_results
A list containing the model results from margot_causal_forest().
- flip_outcomes
A character vector of outcome variable names for which CATE estimates should be flipped.
- model_prefix
A character string indicating the prefix used for model names in the results list. Default is "model_".
- verbose
Logical indicating whether to display detailed messages during execution. Default is TRUE.