ctRefineTo: ctRefineTo

Description Usage Arguments Details Value

View source: R/ctRefineTo.R

Description

Fits a ctsem m in a stepwise fashion to help with difficult optimization.

Usage

1
ctRefineTo(datawide, ctmodelobj, modfunc = NULL, ...)

Arguments

datawide

Data in ctsem wide format

ctmodelobj

A continuous time m specified via the ctModel function.

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 ctFit.

Details

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

Value

Returns a fitted ctsem object in the same manner as ctFit.


cdriveraus/ctsem documentation built on April 18, 2019, 9:51 a.m.