Produces a draw of coefficients for cointegration models in SUR form with a prior on the cointegration space as proposed in Koop et al. (2010) and a draw of non-cointegration coefficients from a normal density.
post_coint_kls_sur(y, beta, w, sigma_i, v_i, p_tau_i, g_i, x = NULL,
gamma_mu_prior = NULL, gamma_V_i_prior = NULL)
a
a
a
the inverse of the constant
a numeric between 0 and 1 specifying the shrinkage of the cointegration space prior.
an inverted
a
a
a
an inverted
A named list containing the following elements:
a draw of the
a draw of the
a draw of the
a draw of the
The function produces posterior draws of the coefficient
matrices
Draws of the loading matrix
For a given prior mean vector
Draws of the cointegration matrix
The final draws of
Koop, G., Le<U+00F3>n-Gonz<U+00E1>lez, R., & Strachan R. W. (2010). Efficient posterior simulation for cointegrated models with priors on the cointegration space. Econometric Reviews, 29(2), 224-242. https://doi.org/10.1080/07474930903382208
# NOT RUN {
data("e6")
temp <- gen_vec(e6, p = 0)
y <- temp$Y
ect <- temp$W
k <- nrow(y)
t <- ncol(y)
# Initial value of Sigma
sigma <- tcrossprod(y) / t
sigma_i <- solve(sigma)
# Initial values of beta
beta <- matrix(c(1, -4), k)
# Draw parameters
coint <- post_coint_kls_sur(y = y, beta = beta, w = ect,
sigma_i = sigma_i, v_i = 0, p_tau_i = diag(1, 1),
g_i = sigma_i)
# }
Run the code above in your browser using DataLab