Description Usage Arguments Details Value Author(s) References See Also
Create a matrix of a variable lagged up to some instant
1 |
var |
a vector of the variable to lag |
k |
an integer indicating the number of lags to compute |
This function creates a matrix with k+1 columns. The columns hold var
lagged from 0 to k.
It is designed to be called from within pdl
.
A matrix with the lagged variate.
Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
Schwartz, J. (2000) The distributed lag between air pollution and daily deaths. Epidemiology 11(3), 320–326.
Diggle, P. J. (1990) Time Series: A Biostatistical Introduction. Oxford University Press.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.