Skip to content
Prev 3267 / 15274 Next

garchFit with fSeries

Here are some examples:


y <- data$SG
n <- length(y)
ret <- ts(log(y[2:n]/y[1:(n-1)]))

library(fGarch) 
fit <- garchFit(~garch(1, 1), data = ret) 
f <- predict(fit, n.ahead = 10) 
plot(fit)



--------------------------------------------------
From: "Yohan Chalabi" <chalabi at phys.ethz.ch>
Sent: Thursday, November 27, 2008 4:33 AM
To: "Im, Haekyung" <haekyung.im at credit-suisse.com>
Cc: <r-sig-finance at stat.math.ethz.ch>
Subject: Re: [R-SIG-Finance] garchFit with fSeries
Message-ID: <BAY108-DS664CC4F261DD0C352999FCD0A0@phx.gbl>
In-Reply-To: <007C8F8DF2E33749B101560D423AA3F6035DCF92@EPRI17P32003A.csfb.cs-group.com> <20081126183312.7ca982cc@mimi>