Skip to content
Prev 11633 / 15274 Next

Error in rugarch ACF squared standardized residuals plot

I can't replicate your PNG chart differences and here is an example of 
how you can check:
##########################################
library(rugarch)
# you specification with YOUR estimated parameters:
modsp<-ugarchspec(variance.model = list(model = "sGARCH", garchOrder = 
c(1, 1)),
mean.model = list(armaOrder = c(5, 5), include.mean = FALSE),
distribution.model = "norm",fixed.pars=list(ar1=0,ar2=0,ar3=0,
ar4 = -0.292207, ar5 = -0.745887, ma1=0,ma2=0,ma3=0,
ma4 = 0.309446, ma5 = 0.718856, omega = 6e-6, alpha1=0.093397,
beta1 = 0.892404))
# Simulate a path
sim=ugarchpath(modsp, n.sim=5000)
# extract the simulated data
mydata = as.numeric(fitted(sim))
# restate the specification:
modsp<-ugarchspec(variance.model = list(model = "sGARCH", garchOrder = 
c(1, 1)), mean.model = list(armaOrder = c(5, 5), include.mean = FALSE),
distribution.model = 
"norm",fixed.pars=list(ar1=0,ar2=0,ar3=0,ma1=0,ma2=0,ma3=0))
# estimate the model:
modgarch<-ugarchfit(spec=modsp,data=mydata )
# extract the standardized residuals:
resdi<-as.numeric(residuals(modgarch,standardize=TRUE))

# plot:
library(forecast)
par(mfrow=c(2,2))
Acf(resdi^2)
plot(modgarch, which=11)
###############################################

I don't see ANY differences. You are however welcome to look at the 
underlying code in the rugarch-plots.R file in the source. If you find a 
bug you are welcome to submit a patch to the google code repository of 
the package rather than continuously sending this list PNG attachments 
and non reproducible code/examples.

Regards,

Alexios
On 22/05/2013 11:49, Jen Bohold wrote: