Dear Community members,
I have a problem that requires me to pull back years in following dataframe:

Basically, the data is CODGEO (like a zip code) by Zone of Employment (ZE, which is a larger unit).
The current data maps CODEGEO to ZE from 2008-2014.
I would like to pull the years back to 1998 for every CODGEO and copy the value of ZE.
ie.
CODGEO YR ZE
01001 1998 8203
01001 1999 8203
01001 2000 8203
01001 2001 8203
01001 2002 8203
01001 2003 8203
(all the way to 2008 for each CODGEO)
01001 2008 8203
I was refering the following link https://stats.idre.ucla.edu/stata/fa...time-variable/
but it needs there to be atleast one CODGEO to have 1998.
Kindly let me know if it is possible to do so. I await your verdict.
Best,
Pranav Garg
I have a problem that requires me to pull back years in following dataframe:
Basically, the data is CODGEO (like a zip code) by Zone of Employment (ZE, which is a larger unit).
The current data maps CODEGEO to ZE from 2008-2014.
I would like to pull the years back to 1998 for every CODGEO and copy the value of ZE.
ie.
CODGEO YR ZE
01001 1998 8203
01001 1999 8203
01001 2000 8203
01001 2001 8203
01001 2002 8203
01001 2003 8203
(all the way to 2008 for each CODGEO)
01001 2008 8203
I was refering the following link https://stats.idre.ucla.edu/stata/fa...time-variable/
but it needs there to be atleast one CODGEO to have 1998.
Kindly let me know if it is possible to do so. I await your verdict.
Best,
Pranav Garg
Comment