[Gretl-users] R question

Chris quilley at gmail.com
Wed Jun 6 09:33:01 EDT 2007


Hi,
So, as per my previous question I've delved into R because it looks like I
should be using a function in there called garchFit. I'm suffering some
sever confusion over how to put the data into the function though. in the
man page it says to use it like this: garchoutput <-
garchFit(~arma(1,1)+garch(1,1), DATA).

I don't know how to enter the data portion. if I put in the regular ols type
function y ~ x1 + x2 ....
I get the error: Error in as.data.frame.default(data) : cannot coerce class
"formula" into a data.frame

if I put the Y variable into a dataframe with the x variables I get this
error:
Error in model.frame(formula, rownames, variables, varnames, extras,
extranames,  :
        invalid type (list) for variable 'x'

here's the command used:
archoutput <- garchFit(formula=~arma(1,1)+garch(2,24), xy.df)

Any help would be greatly appreciated

thanks,

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20070606/03477521/attachment.htm


More information about the Gretl-users mailing list