Learn R Programming

bayesforecast (version 1.0.5)

fitted.varstan: Expected Values of the Posterior Predictive Distribution

Description

The function returns the posterior estimate of the fitted values of a varstan model, similar to the fit_values functions of other packages.

Usage

# S3 method for varstan
fitted(object, robust = FALSE, ...)

Value

A time series (ts) of predicted mean response values.

Arguments

object

a varstan object.

robust

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.

Author

Asael Alonzo Matamoros

Details

This function returns a time series of the predicted mean response values.

See Also

posterior_predict.varstan