Vector / matrix / data.frame, containing variables that need
to be expanded. In case of vector / matrix it is recommended to provide
ts object, so the frequency of the data is taken into account.
lags
Vector of lags / leads that we need to have. Negative values
mean lags, positive ones mean leads.
silent
If silent=FALSE, then the progress is printed out.
Otherwise the function won't print anything in the console.
Value
ts matrix with the expanded variables is returned.
Details
This function could be handy when you want to check if lags and leads
of a variable influence the dependent variable. Can be used together
with xregDo="select" in es, ces,
ges and ssarima. All the missing values
in the beginning and at the end of laged series are substituted by
mean forecats produced using es.