% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ctFit.R
\name{ctFitUpdate}
\alias{ctFitUpdate}
\alias{ctStanFitUpdate}
\title{Update a ctStanFit object}
\usage{
ctFitUpdate(oldfit, data = NA, recompile = FALSE, refit = FALSE, ...)
}
\arguments{
\item{oldfit}{fit object to be upgraded}

\item{data}{replacement long format data object}

\item{recompile}{whether to force a recompile -- safer but slower and usually unnecessary.}

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

\item{...}{extra arguments to pass to ctFit}
}
\value{
updated ctStanFit object.
}
\description{
Either to include different data, or because you have upgraded ctsem and the internal data structure has changed.
}
\examples{
newfit <- ctFitUpdate(ctstantestfit,refit=FALSE)
}
