Plot from a fitted dsem
model
Usage
stepwise_selection(model_options, model_shared, quiet = FALSE, ...)
Arguments
- model_options
character-vector containing sem elements
that could be included or dropped depending upon their
parsimony
- model_shared
character-vector containing sem elements
that must be included regardless of parsimony
- quiet
whether to avoid displaying progress to terminal
- ...
arguments passed to dsem
,
other than sem
e.g., tsdata
, family
etc.
Value
An object (list) that includes:
- model
the string with the selected SEM model
- record
a list showing the AIC and whether each model_options
is included or not
Details
This function conducts stepwise (i.e., forwards and backwards) model
selection using marginal AIC, while forcing some model elements to be
included and selecting among others.