Suppose I have the following dataset:
Code:
input state dist year value 1 1 1990 10 1 1 1991 20 1 1 1992 30 1 1 1993 40 1 1 1994 50 1 1 1995 60 1 1 1996 70 1 1 1997 80 1 1 1998 90 1 1 1999 100 1 1 2000 110 end
While at first I thought I could use a replace with an [_n-#] modifier, the unequal time spans (and sometimes missing start/end points) are proving challenging. Is there an alternative to replace I am missing?
Best,
Jeff
0 Response to Carrying forward values under conditions of another variable
Post a Comment