Skip to content

rugarch by processing with plyr

2 messages · Geoffrey Smith, Alexios Ghalanos

#
Why would they? You have fixed them in the spec (data$XVAR) and are only
rolling the YVAR (which is the same for both subjects) by subject.

You probably want:

ddply(data, 'SUBJECT', function(x)
coef(ugarchfit(ugarchspec(mean.model=list(armaOrder=c(0,0),
external.regressors=data.matrix(x$XVAR)),variance.model=list(model='eGARCH')),
data=x$YVAR, solver='hybrid')))


Regards,

Alexios
On 23/09/2013 20:43, Geoffrey Smith wrote: