update.dynamitefit {dynamite} | R Documentation |
Update a Dynamite Model
Description
Note that using a different backend for the original model fit and when
updating can lead to an error due to different naming in cmdstanr
and
rstan
sampling arguments.
Usage
## S3 method for class 'dynamitefit'
update(
object,
dformula = NULL,
data = NULL,
priors = NULL,
recompile = NULL,
...
)
Arguments
object |
[ |
dformula |
[ |
data |
[ |
priors |
[ |
recompile |
[ |
... |
Additional parameters to |
Value
An updated dynamitefit
object.
See Also
Model fitting
dynamice()
,
dynamite()
,
get_priors()
Examples
data.table::setDTthreads(1) # For CRAN
## Not run:
# re-estimate the example fit without thinning:
# As the model is compiled on Windows, this will fail on other platforms
if (identical(.Platform$OS.type, "windows")) {
fit <- update(gaussian_example_fit, thin = 1)
}
## End(Not run)