Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ctStanFitUpdate

Update a ctStanFit object


Description

Either to include different data, or because you have upgraded ctsem and the internal data structure has changed.

Usage

ctStanFitUpdate(oldfit, data = NA, recompile = FALSE, refit = FALSE, ...)

Arguments

oldfit

fit object to be upgraded

data

replacement long format data object

recompile

whether to force a recompile – safer but slower and usually unnecessary.

refit

if TRUE, refits the model using the old estimates as a starting point. Only applicable for optimized fits, not sampling.

...

extra arguments to pass to ctStanFit

Value

updated ctStanFit object.

Examples

if(w32chk()){
newfit <- ctStanFitUpdate(ctstantestfit,refit=FALSE)
}

ctsem

Continuous Time Structural Equation Modelling

v3.4.3
GPL-3
Authors
Charles Driver [aut, cre, cph], Manuel Voelkle [aut, cph], Han Oud [aut, cph], Trustees of Columbia University [cph]
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.