lagPanel {prodest} | R Documentation |
Generate lagged input variables
Description
Function to generate lagged variables in a panel.
Usage
lagPanel(idvar, timevar, value)
Arguments
idvar |
vector of panel identifiers. |
timevar |
vector of time identifiers. |
value |
variable vector to be lagged. |
Details
lagPanel()
accepts three inputs (the ID, the time and the variable to be lagged) and returns the vector of lagged variable. Lagged inputs with no correspondence - i.e., X_-1 - are returned as NA.
Author(s)
Gabriele Rovigatti
[Package prodest version 1.0.1 Index]