Create matrix of lagged time series

`XLAG = lagmatrix(X,Lags)`

`XLAG = lagmatrix(X,Lags)`

creates
a lagged (shifted) version of a time series matrix. The `lagmatrix`

function
is useful for creating a regression matrix of explanatory variables
for fitting the conditional mean of a return series.

| Time series of explanatory data. |

| Vector of integer lags. |

| Lagged transform of the time series |

Was this topic helpful?