# NOT RUN {
library(astsa)
# Fitting a GARCH(1,1) model
dat = garch(ipc,order = c(1,1,0))
fit2 = varstan(dat,iter = 500,chains = 1)
# Extracting the mean parameter
mu0 = extract_stan(fit2,pars = "mu0")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab