residuals-methods | R Documentation |
Extracts residuals from a fitted GARCH object.
## S4 method for signature 'fGARCH'
residuals(object, standardize = FALSE)
object |
an object of class |
standardize |
a logical, indicating if the residuals should be standardized. |
The "fGARCH"
method extracts the @residuals
slot from an
object of class "fGARCH"
as returned by the function
garchFit
and optionally standardizes them, using conditional
standard deviations.
Diethelm Wuertz for the Rmetrics R-port
fitted
,
predict
,
garchFit
,
class fGARCH
,
stopifnot(require("timeSeries"))
## Swiss Pension fund Index
data(LPP2005REC, package = "timeSeries")
x <- as.timeSeries(LPP2005REC)
## Fit LPP40 Bechmark:
fit <- garchFit(LPP40 ~ garch(1, 1), data = 100*x, trace = FALSE)
fit
fitted <- fitted(fit)
head(fitted)
class(fitted)
res <- residuals(fit)
head(res)
class(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.