varstan objectThe function returns the posterior estimate of the residuals
of a varstan model, similar to the residual functions of other
packages.
# S3 method for varstan
residuals(object, robust = FALSE, ...)An array with the posterior estimate of the residuals of the time series model,
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_residual.
Asael Alonzo Matamoros
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