Description Usage Arguments Value Author(s) References Examples
Given the time series and the order p of the AR series, this function returns the lagged variables of order p. The lagged response is in the first column followed by the lagged x's in increasing order.
1 | lagmat(x, p)
|
x |
time series |
p |
order of the AR series |
xmat |
a matrix with p+1 columns, the first column is the lagged response, the remaining columns are the lagged x's in increasing order. |
Joe McKean mckean@wmich.edu and John Kloke kloke@biostat.wisc.edu
Kloke, J. and McKean, J.W. (2014), Nonparametric statistical methods using R, Boca Raton, FL: Chapman-Hall.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.