# NOT RUN {
# Running all the below examples takes approximately 2 minutes.
# GMVAR(1,2) model
fit12 <- fitGMVAR(gdpdef, p=1, M=2, ncalls=1, seeds=1)
fit12
profile_logliks(fit12)
# Structural GMVAR(1,2) model identified with sign
# constraints: model build based on inaccurate hand-given estimates.
W_122 <- matrix(c(1, 1, -1, 1), nrow=2)
params12s <- c(0.55, 0.11, 0.62, 0.17, 0.34, 0.05, -0.01, 0.72, 0.25,
0.02, -0.14, 0.86, 0.54, 0.06, -0.16, 0.16, 3.62, 4.73, 0.67)
mod12s <- GMVAR(gdpdef, p=1, M=2, params=params12s,
structural_pars=list(W=W_122))
profile_logliks(mod12s)
# }
Run the code above in your browser using DataLab