##simulate from a garch(1,1):
set.seed(123)
y <- garchxSim(1000)
##estimate garch(1,1) model:
mymod <- garchx(y)
##print estimation results:
print(mymod)
##extract coefficients:
coef(mymod)
##extract and store conditional variances:
sigma2hat <- fitted(mymod)
##extract log-likelihood:
logLik(mymod)
##extract and store standardised residuals:
etahat <- residuals(mymod)
##extract coefficient variance-covariance matrix:
vcov(mymod)
##generate predictions:
predict(mymod)
Run the code above in your browser using DataLab