Dear all,

First I want to say thanks for the beautiful rugarch package!

I am trying to replicate some results and I would like to know if there is
any adjustment that I can do to run the egarch model with external
regressors using less than 100 observations. I tried to run my model but
returns the message error below:

spx<-xts(sp500ret, as.Date(rownames(sp500ret)))
xreg<-xts(rnorm(nrow(spx)), index(spx))
xreg = lag(xreg,1)
inputs<-na.omit(cbind(spx, xreg, join="left"))

egarch.spec = ugarchspec(variance.model = list(model = 'eGARCH', garchOrder
= c(1, 1)), mean.model = list(armaOrder = c(0, 0), include.mean = TRUE,

    external.regressors= inputs[1:60,2]), distribution.model = 'sged') = ugarchfit(egarch.spec, inputs[1:60,1])
egarch.fcst = ugarchforecast(, n.ahead=1)

Error in .egarchfit(spec = spec, data = data, out.sample = out.sample,  :

ugarchfit-->error: function requires at least 100 data
 points to run

Thanks a lot for any help!

Carol Silva

        [[alternative HTML version deleted]]

_______________________________________________ mailing list
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 

Reply via email to