[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
http://cran.r-project.org/web/packages/fGarch/fGarch.pdf
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!
HTH
daniel
________________________________________
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"
fit=garchFit(v.ts)
Error in if (allVarsTest != 1) { : missing value where TRUE/FALSE needed
I do not understand the error. Which missing value is required. Kindly
assist.
Charles.
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
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