View source: R/model-fitting.R
fit_all_subsets_one | R Documentation |
Fit All Subsets of a Global Model
fit_all_subsets_one(
global_model,
fit_data,
parallel = FALSE,
reduce_colinearity = FALSE,
cwt_retain = 1
)
global_model |
A fitted model object with class |
fit_data |
|
parallel |
Logical: should model fitting be performed with parallel processing?
Defaults to |
reduce_colinearity |
Logical: Should variables that are known to be colinear be
prevented from being included in the same model?
Defaults to |
cwt_retain |
Numeric value between 0 and 1: what cumulative model weight should be used to trim the set of models? Defaults to 1 (i.e., keep models all models). |
A list
of fitted model objects (each with class lm
).
If parallel = TRUE
, models will be fitted using MuMIn::pdredge()
with the number of parallel cores used set to max(parallel::detectCores() - 1, 1)
.
Otherwise, the models will be fitted using MuMIn::dredge()
.
In either case, the printing of fixed terms (intercept only) is suppressed.
Additionally, regardless of the value of cwt_retain
, if 5 or fewer models
are in the all allowed subsets of the global model, no trimming will be conducted.
Additionally, if the trimmed model set has fewer than 2 models, no trimming will be conducted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.