panel_lag: Panel data lag function

Description Usage Arguments Note

View source: R/panel_lag.R

Description

This function aims create the lags of a specified variable from panel data.

Usage

1
panel_lag(x, id, time, lag = 1, verify = TRUE)

Arguments

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.

Note

Based on Paul Schrimpf's lag function.


estprod documentation built on July 20, 2020, 5:07 p.m.

Related to panel_lag in estprod...