ctRefineTo | R Documentation |
Fits a ctsem m in a stepwise fashion to help with difficult optimization.
ctRefineTo(datawide, ctmodelobj, modfunc = NULL, ...)
datawide |
Data in ctsem wide format |
ctmodelobj |
A continuous time m specified via the |
modfunc |
function to run prior to each optimization step, that takes ctsem fit object, modifies it as desired, and returns the fit object. |
... |
additional parameters to pass to |
This function fits a sequence of ctsem models increasing in complexity, starting with a m involving fixed and relatively strong auto effects, no cross effects, no predictors, and no off-diagonal covariances. For many models this can improve the speed and robustness of fitting
Returns a fitted ctsem object in the same manner as ctFit
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.