Skip to content
Prev 11635 / 15274 Next

Error in rugarch ACF squared standardized residuals plot

I've traced the difference to the way the residuals method deals with 
the startup values (5 lags) versus the plot which extracts directly the 
standardized residuals used in the likelihood routine.

This gives the same answer:

par(mfrow=c(2,2))
plot(modelgarch,which=11)
resdi<-as.numeric(residuals(modelgarch,standardize=TRUE))^2
Acf(resdi[-c(1:5)])

In most cases this is not likely be significantly different. It is 
related to a problem of how to initialize the ARMA recursion and what to 
return to the user. In THIS case, the first 5 values had an effect which 
changed the visual result marginally. For consistency I guess that the 
plot should return the result one would expect by using the residuals 
method on the model.

Feel free to submit a patch.

Regards,
Alexios
On 22/05/2013 13:40, Jen Bohold wrote: