[R] fitting a time series into a GARCH model using fGarch

Kehl Dániel kehld at ktk.pte.hu
Tue Feb 25 09:22:08 CET 2014

Dear Charles,

see the help file and the examples at
or use ?garchFit

in the examples you will see for example:

garchFit(~ garch(1,1), data = x.vec, trace = FALSE)

Try something like that. Make sure you provide the package of the function next time!

Feladó: r-help-bounces at r-project.org [r-help-bounces at r-project.org] ; meghatalmazó: Charles Thuo [tcmuigai at gmail.com]
Küldve: 2014. február 25. 8:36
To: r-help at r-project.org
Tárgy: [R] fitting a time series into a GARCH model using fGarch

I have been trying to fit a time series object using the garchFit()
function. However am getting the results below

> class(v.ts)
[1] "ts"

Error in if (allVarsTest != 1) { : missing value where TRUE/FALSE needed

I do not understand the error. Which missing value  is required. Kindly


        [[alternative HTML version deleted]]

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list