powered by
Prepares data for estimation
ec.datalag(y, nlag = 4)
is the data matrix of variables in the VAR
is the number of lags in the VAR (min = 2)
ymat contains the folloiwing columns Dy y_1 Dy_1 ... Dy_nlag-1
Berta et al. 2020