# Use default parameters beside alpha:
spec <- garchSpec(model = list(alpha = c(0.05, 0.05)))
spec
coef(spec)
## Simulate an univariate "timeSeries" series from specification 'spec':
x <- garchSim(spec, n = 2000)
x <- x[,1]
fit <- garchFit( ~ garch(1, 1), data = x, trace = FALSE)
coef(fit)
Run the code above in your browser using DataLab