residuals.KFS {KFAS} | R Documentation |
Extract Residuals of KFS output
Description
Extract Residuals of KFS output
Usage
## S3 method for class 'KFS'
residuals(object, type = c("recursive", "pearson", "response", "state"), ...)
Arguments
object |
KFS object |
type |
Character string defining the type of residuals. |
... |
Ignored. |
Details
For object of class KFS, several types of residuals can be computed:
-
"recursive"
: One-step-ahead prediction residuals. For non-Gaussian case recursive residuals are computed as
, i.e. non-sequentially. Computing recursive residuals for large non-Gaussian models can be time consuming as filtering is needed.
-
"pearson"
:where
is the variance function of the series
-
"response"
: Data minus fitted values,.
-
"state"
: Residuals based on the smoothed disturbance termsare defined as
Only defined for fully Gaussian models.
[Package KFAS version 1.5.1 Index]