View source: R/mcee_helper_nuisance_config.R
| mcee_config_gam | R Documentation |
Creates a configuration to fit nuisance parameters using generalized additive models
via mgcv::gam(). Supports smooth terms like s().
mcee_config_gam(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.
# GAM with smooth time effect
cfg_eta <- mcee_config_gam("eta", ~ X1 + s(dp, k = 4))
# GAM with multiple smooths
cfg_mu <- mcee_config_gam("mu", ~ s(dp) + s(M, X1, k = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.