mboeck11 / BGVAR

Toolbox for the estimation of Bayesian Global Vector Autoregressions in R.
27 stars 20 forks source link

Feature request: allow for different lag order depending on the type of variable #8

Closed danfer21 closed 2 years ago

danfer21 commented 2 years ago

Hello,

It would be very useful if the user of BGVAR could select the lag order for each of the types of variables that enter into the model (i.e. endogenous, weakly exogenous, and exogenous).

Thank you!

mboeck11 commented 2 years ago

Hi,

you can no either provide plag of length one or two. Length one specifies the same lag order for both endogenous and weakly exogenous variables. However, if specified with length two, you can now distinguish between the lag order on the endogenous and weakly exogenous part.

Note that you can not specify the lag order of the truly exogenous variables (given in Ex), because of its more general structure. There you could also have potentially variables which you do not want to have lagged in your specification. Hence, you would have to provide your own data matrix with already lagged values in it.

I hope this helps!

Best, Max