ctStanFitUpdate: Update a ctStanFit object

View source: R/ctStanFit.R

ctStanFitUpdateR Documentation

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

newfit <- ctStanFitUpdate(ctstantestfit,refit=FALSE)

ctsem documentation built on Nov. 2, 2023, 6:03 p.m.