Recover original Y_in from Y, X and number of lags p
bvar_get_Y_in(Y, X, p)
Y | [T x m] matrix of left hand side endogeneous variables |
---|---|
X | [T x k] matrix of right hand side regressors: endogeneous and exogeneous variables |
p | number of lags |
original supplied Y_in
Recover original Y_in from Y, X and number of lags p
data(Yraw) Y <- bvar_build_Y(Yraw, p = 4) X <- bvar_build_X(Yraw, constant = TRUE, p = 4) Y_in <- bvar_get_Y_in(Y, X, p = 4)