View source: R/mixture-score-glm.R
Create score-based mixture via glm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | mixture_score_glm(
data,
outcome,
exposures,
estimator_mixture = sl3::Lrnr_sl$new(learners = sl3::make_learner(sl3::Stack,
sl3::make_learner(sl3::Lrnr_mean), sl3::make_learner(sl3::Lrnr_glm)), metalearner =
sl3::make_learner(sl3::Lrnr_nnls)),
estimator_confounders = NULL,
folds_mixture = 5L,
folds_confounders = 5L,
exposure_groups = NULL,
max_iterations = 5L,
tolerance = 1e-05,
adjust_other_exposures = TRUE,
force_offset = TRUE,
quantiles = NULL,
family = "continuous",
verbose = FALSE,
debug = FALSE,
...
)
|
data |
tbd |
outcome |
outcome column name |
exposures |
tbd |
estimator_mixture |
sl3::Lrnr_sl with offset-supporting learners |
estimator_confounders |
sl3::Lrnr_sl with offset-supporting learners |
folds_mixture |
SL folds to use during mixture estimation; default 5. (Not yet implemented). |
folds_confounders |
SL folds to use during confounder estimation; default 5. (Not yet implemented). |
exposure_groups |
List of all exposure groups |
max_iterations |
tbd |
tolerance |
tbd |
adjust_other_exposures |
Whether or not to include other exposure groups as confounders to adjust for. Default TRUE. |
force_offset |
Whether to use offset style estimation for gaussian outcomes; default True. |
quantiles |
tbd |
family |
Not used for this mixture estimator. |
verbose |
tbd |
debug |
If True show very detailed output. |
... |
tbd |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.