powered by
gBox(model, lags = 1:20, x, method = c("squared", "absolute")[1], plot = TRUE)
library(tseries) data(CREF) r.cref=diff(log(CREF))*100 m1=garch(x=r.cref,order=c(1,1)) summary(m1) #gBox(m1,x=r.cref,method='squared')
Run the code above in your browser using DataLab