residuals.varstan: Generic function and method for extract the residual of a...

Description Usage Arguments Details Value Author(s)

View source: R/predictive_error.R

Description

The function returns the posterior estimate of the residuals of a varstan model, similar to the residual functions of other packages.

Usage

1
2
## S3 method for class 'varstan'
residuals(object, robust = FALSE, ...)

Arguments

object

A varstan object, varstan

robust

A boolean 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_residual.

Details

This function only extracts the point-wise estimate of the time series residuals for extracting all the data use extract_stan() or posterior_intervals function

Value

An array with the posterior estimate of the residuals of the time series model,

Author(s)

Asael Alonzo Matamoros


bayesforecast documentation built on June 17, 2021, 5:14 p.m.