View source: R/mcee_helper_nuisance_config.R
mcee_config_glm | R Documentation |
Creates a configuration to fit nuisance parameters using generalized linear models
via stats::glm()
.
mcee_config_glm(target, formula, family = NULL, clipping = NULL)
target |
Character. Nuisance parameter name ("p", "q", "eta", "mu", "nu"). |
formula |
RHS-only formula (e.g., |
family |
Optional GLM family. Defaults to |
clipping |
Optional numeric vector |
A configuration list for use with mcee_general
.
# Binary outcome model for propensity
cfg_q <- mcee_config_glm("q", ~ dp + M, family = binomial())
# Gaussian outcome model
cfg_eta <- mcee_config_glm("eta", ~ dp + X1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.