I'm trying to make the variable representing the work status in the previous year to the year of delivery of the first child of the women.
The code that I wrote was as following:
Code:
sort pid year by pid: g work_birth = work[year_birth - 1]
It didn't work, so is there anyone who could help me with the command?
0 Response to Creating time lead variable to the specific year
Post a Comment