lagger: Lag a time-series cross-sectional variable

Description Usage Arguments

Description

Lag a time-series cross-sectional variable

Usage

1
lagger(df, id_var, time_var, weight_name)

Arguments

df

a data frame containing the unit ID variable and time variables as well as location' and dependent variables.

id_var

a character string identifying the unit ID variable in df.

time_var

a character string identifying the time variable in df. If not specified, then all observations are assumed to be from the same time period.

weight_name

character string providing a custom weighting variable name.


christophergandrud/spatialWeights documentation built on May 13, 2019, 7:04 p.m.