Interpret Qini Results for Both Binary and Multi-Arm Treatments
Source:R/margot_interpret_qini.R
margot_interpret_qini.Rd
This function interprets Qini results for both binary and multi-arm treatments. It detects the treatment type based on the input data structure and calls the appropriate sub-function.
References
Sverdrup, E., Wu, H., Athey, S., & Wager, S. (2024). Qini Curves for Multi-Armed Treatment Rules. arXiv preprint arXiv:2306.11979.
Examples
if (FALSE) { # \dontrun{
label_mapping <- list(
"t2_env_not_climate_chg_concern_z" = "Deny Climate Change Concern",
"t2_env_not_climate_chg_cause_z" = "Deny Humans Cause Climate Change"
)
binary_results <- margot_interpret_qini(binary_multi_batch, label_mapping = label_mapping)
print(binary_results$summary_table)
multi_arm_results <- margot_interpret_qini(multi_arm_multi_batch, label_mapping = label_mapping)
print(multi_arm_results$arm1$summary_table)
} # }