Learn R Programming

bayesforecast (version 1.0.5)

check_residuals: Visual check of residuals in a varstan object.

Description

Performs a visual check of residuals in time series models, this method is inspired in the check.residuals function provided by the forecast package.

Usage

check_residuals(object, ...)

Value

None. Function produces a ggplot2 graph.

Arguments

object

a varstan object.

...

Other plotting parameters to affect the plot.

Author

Asael Alonzo Matamoros.

Examples

Run this code
# \donttest{
 sf1 = auto.sarima(ts = birth, iter = 500, chains = 1)
 # fitted model
 check_residuals(sf1)
# }

Run the code above in your browser using DataLab