The function returns the posterior estimate of the fitted values
of a varstan
model, similar to the fit_values functions of other
packages.
# S3 method for varstan
fitted(object, robust = FALSE, ...)
A time series (ts)
of predicted mean response values.
a varstan
object.
a bool value, if its TRUE
it returns the median of the
posterior distribution, and if its FALSE
it returns the mean, by default
is the FALSE
value.
Further arguments passed to posterior_predict
.
Asael Alonzo Matamoros
This function returns a time series of the predicted mean response values.
posterior_predict.varstan