Description Usage Arguments Note
This function aims create the lags of a specified variable from panel data.
1 |
x |
A vector, data.frame, tibble or matrix. |
id |
A character with the name of the indicator variable. |
time |
A character with the name of the time variable. |
lag |
Number of lags. |
verify |
Check if panel is sorted by id and time variables. |
Based on Paul Schrimpf's lag function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.