View source: R/mcee_helper_nuisance_config.R
mcee_config_sl | R Documentation |
Creates a configuration to fit nuisance parameters using SuperLearner
via SuperLearner::SuperLearner()
. Automatically selects among
multiple learning algorithms.
mcee_config_sl(target, formula, SL.library = NULL, clipping = NULL)
target |
Character. Nuisance parameter name ("p", "q", "eta", "mu", "nu"). |
formula |
RHS-only formula (e.g., |
SL.library |
Optional character vector of learner names. If |
clipping |
Optional numeric vector |
A configuration list for use with mcee_general
.
# SuperLearner with default library
cfg_q <- mcee_config_sl("q", ~ dp + M + X1)
# SuperLearner with custom library
cfg_eta <- mcee_config_sl("eta", ~ dp + X1,
SL.library = c("SL.glm", "SL.rf", "SL.ranger")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.