Learn R Programming

bayesforecast (version 1.0.1)

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, ...)

Arguments

object

a varstan object.

...

Other plotting parameters to affect the plot.

Value

None. Function produces a ggplot2 graph.

Examples

Run this code
# NOT RUN {
 library(astsa)
 sf1 = auto.sarima(ts = birth,iter = 500,chains = 1)
 # fitted model
 check_residuals(sf1)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab