search for: unitvar

Displaying 1 result from an estimated 1 matches for "unitvar".

2005 Aug 14
1
Panel data handling (lags, growth rates)
...ns :-) and make them available to the R community. The two functions follow: library(Hmisc) # Am using Lag() in this. # Task: For a supplied list of variables (the list `lagvars'), # make new columns in a dataset denoting lagged values. # You must supply `unitvar' which identifies the unit that's # repeatedly observed. # You must supply the name of the time variable `timevar' # and you must tell a list of the lags that interest you (`lags') # Example: # paneldata.lags(A, "person", "year", c("v1...