Description Usage Arguments Details Value Author(s)
This creates a ts matrix of lag columns from a ts object
1 | ts2lagMatrix(myTs, nlag = 1, pastLags = TRUE)
|
myTs |
a univariate time series object |
nlag |
number of lags |
pastLags |
create foreward or past lags |
can either use past lags or forward lags
time series object where each column is a lag of the original data
Matthew Davis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.