Construct blocks of original and lagged values for autoregressive time
series models with exogenous inputs. The typical use case is to supply the
output as `newdata`

argument to the
`predict`

method of robust groupwise least
angle regression models.

1 |

`x` |
a numeric matrix or data frame containing the exogenous predictor series. |

`y` |
a numeric vector containing the response series. |

`p` |
an integer giving the number of lags to include (defaults to 2). |

`subset` |
a logical or integer vector defining a subset of observations from which to construct the matrix of predictor blocks. |

`intercept` |
a logical indicating whether a column of ones should be added to the matrix of predictor blocks to account for the intercept. |

A matrix containing blocks of original and lagged values of the
time series `y`

and `x`

.

Andreas Alfons

`predict.tslars`

, `tslars`

,
`predict.tslarsP`

, `tslarsP`

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.