[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: creating a "years since event" variable in panel data
I have a annual panel data set (1 obs per year), where ID identifies the
person and the variable OBSYEAR the year of observation (1995=1, 1996=2,
The variable TIME is the time dimension, ranging from 0 to 7.
The variable EVENT is a dymmy (1=event happened during the year in question;
0=event did not happen during the year in question).
Q: How do I create the variable NUMBER OF YEARS SINCE (A POSSIBLE) CHANGE
FROM 0 to 1 on EVENT?
* For searches and help try: