R/recipe-api.R
add_propensity_diagnostic.Rd
This adds a diagnostic to the propensity score.
add_propensity_diagnostic(hte_cfg, diag)
HTE_cfg
object to update.
Character indicating the name of the diagnostic
to include. Possible values are "MSE"
, "AUC"
and, for
SuperLearner
ensembles, "SL_risk"
and "SL_coefs"
.
Updated HTE_cfg
object
library("dplyr")
basic_config() %>%
add_propensity_diagnostic(c("AUC", "MSE")) -> hte_cfg