# \donttest{
## These are long running examples that use parallel computing!
## The below examples take around 1 minute to run.
# Structural GMVAR(2, 2), d=2 model with recursive identification
W22 <- matrix(c(1, NA, 0, 1), nrow=2, byrow=FALSE)
fit22s <- fitGSMVAR(gdpdef, p=2, M=2, structural_pars=list(W=W22),
ncalls=1, seeds=2)
# The same model but the AR coefficients restricted to be the same
# in both regimes:
C_mat <- rbind(diag(2*2^2), diag(2*2^2))
fit22sc <- fitGSMVAR(gdpdef, p=2, M=2, constraints=C_mat,
structural_pars=list(W=W22), ncalls=1, seeds=1)
# Test the AR constraints with likelihood ratio test:
LR_test(fit22s, fit22sc)
# }
Run the code above in your browser using DataLab