# NOT RUN {
# These are long running examples and use parallel computing
data(eurusd, package="gmvarkit")
data <- cbind(10*eurusd[,1], 100*eurusd[,2])
colnames(data) <- colnames(eurusd)
# GMVAR(1,2) model
fit12 <- fitGMVAR(data, 1, 2, ncalls=2, seeds=7:8)
fit12
fit12_2 <- alt_gmvar(fit12, which_round=1)
fit12_2
# Structural GMVAR(1,2) model identified with sign
# constraints.
W_122 <- matrix(c(1, NA, -1, 1), nrow=2)
fit12s <- fitGMVAR(data, p=1, M=2, structural_pars=list(W=W_122),
ncalls=2, seeds=1:2)
fit12s
fit12s_2 <- alt_gmvar(fit12s, which_round=2)
fit12s_2
# }
Run the code above in your browser using DataLab