Diagnostics_cfg is a configuration class for estimating a variety of
diagnostics for the models trained in the course of HTE estimation.
psModel diagnostics for the propensity score model.
outcomeModel diagnostics for the outcome models.
effectModel diagnostics for the joint effect model.
paramsParameters for any requested diagnostics.
new()Create a new Diagnostics_cfg object with specified diagnostics to estimate.
Diagnostics_cfg$new(ps = NULL, outcome = NULL, effect = NULL, params = NULL)psModel diagnostics for the propensity score model.
outcomeModel diagnostics for the outcome models.
effectModel diagnostics for the joint effect model.
paramsList providing values for parameters to any requested diagnostics.
Diagnostics_cfg$new(
outcome = c("SL_risk", "SL_coefs", "MSE", "RROC"),
ps = c("SL_risk", "SL_coefs", "AUC")
)add()Add diagnostics to the Diagnostics_cfg object.
psModel diagnostics for the propensity score model.
outcomeModel diagnostics for the outcome models.
effectModel diagnostics for the joint effect model.
cfg <- Diagnostics_cfg$new(
outcome = c("SL_risk", "SL_coefs", "MSE", "RROC"),
ps = c("SL_risk", "SL_coefs")
)
cfg <- cfg$add(ps = "AUC")Diagnostics_cfg$new(
outcome = c("SL_risk", "SL_coefs", "MSE", "RROC"),
ps = c("SL_risk", "SL_coefs", "AUC")
)
#> <Diagnostics_cfg>
#> Public:
#> add: function (ps = NULL, outcome = NULL, effect = NULL)
#> clone: function (deep = FALSE)
#> effect:
#> initialize: function (ps = NULL, outcome = NULL, effect = NULL, params = NULL)
#> outcome: SL_risk SL_coefs MSE RROC
#> params: list
#> ps: SL_risk SL_coefs AUC
## ------------------------------------------------
## Method `Diagnostics_cfg$new`
## ------------------------------------------------
Diagnostics_cfg$new(
outcome = c("SL_risk", "SL_coefs", "MSE", "RROC"),
ps = c("SL_risk", "SL_coefs", "AUC")
)
#> <Diagnostics_cfg>
#> Public:
#> add: function (ps = NULL, outcome = NULL, effect = NULL)
#> clone: function (deep = FALSE)
#> effect:
#> initialize: function (ps = NULL, outcome = NULL, effect = NULL, params = NULL)
#> outcome: SL_risk SL_coefs MSE RROC
#> params: list
#> ps: SL_risk SL_coefs AUC
## ------------------------------------------------
## Method `Diagnostics_cfg$add`
## ------------------------------------------------
cfg <- Diagnostics_cfg$new(
outcome = c("SL_risk", "SL_coefs", "MSE", "RROC"),
ps = c("SL_risk", "SL_coefs")
)
cfg <- cfg$add(ps = "AUC")