Is it possible (in package vars or maybe in some other R package?) to include non-consecutive lags into the var model, i.e., just lags 1 and 3.
So far, it looks like when I set p = 3 under function VAR
, it includes all consecutive lags between 1 and p (i.e., 1:3).
You can use
restrict
from vars package for estimating a restricted VAR. This method requires estimate the model twice: 1) the unrestricted model with all the "consecutive lags" and 2) a restricted model with only the lags you want. This is so, becasuerestrict
function takes as input an object of class 'varest'. See my alternative:See
?restrict
for further details on this function.