Compute Impulse Response for Every Sample of MCMC
irf_single(i, varrlt, Lamb, Ynum, type = "orth", impvar = 1, nhor)
the \(i\)th sample in MCMC
estimation results for VAR equations, and it's got by BayesVAR
.
a array with 3 dimension. and Lamb[i,,]
is factor loading matrix for factor equations.
the ncol(Y)
.
'orth'
is orthogonal IRF, and 'gen'
is generalized
IRF.
a numeric scalar which is position of variables in VAR equation.
If it's NULL
that is default, its position is the last.
IRF horizon, default is NULL
IRF matrix, the dimension is ncol(Xmatrix) + ncol(Y)
xnhor
.