This function is very time consuming and by default computes the one-step-ahead residual for the last 100 observations. See the function oneStepPredict and the paper in the references for more details.
residuals(object, conditional = 1:(object$nobs - 100), ...)
Vector of one-step-ahead residuals. If the model is correctly specified, these should be standard normal.
A stochvolTMB
object.
Index vector of observations that are fixed during OSA. By default the residuals of the last 100
observations are calculated. If set to NULL
it will calculate one-step-ahead residuals for all observations.
Currently not used.