Hi everyone--
I have a large data set consisting of labor force outcomes for 9000 individuals reported on a weekly basis for roughly 15 years. I am looking to create a variable that counts the number of weeks an individual works with the same employer (job tenure), not including unemployment/dropping out of the labor force weeks in between working for the same employer. The current variable I have (EMP_STATUS_) reports the unique employer ID (denoted in this example as 199701) as well as any unemp/out of LF spells (denoted as -4), so it looks kinda like this:
WEEK EMP_STATUS_ JOBTENURE
let me know if you have any suggestions!
Thank you,
Rebecca
I have a large data set consisting of labor force outcomes for 9000 individuals reported on a weekly basis for roughly 15 years. I am looking to create a variable that counts the number of weeks an individual works with the same employer (job tenure), not including unemployment/dropping out of the labor force weeks in between working for the same employer. The current variable I have (EMP_STATUS_) reports the unique employer ID (denoted in this example as 199701) as well as any unemp/out of LF spells (denoted as -4), so it looks kinda like this:
WEEK EMP_STATUS_ JOBTENURE
1 199701 1
2 199701 2
3 199701 3
4 199701 4
5 199701 5
6 199701 6In this case, since the individual returned to their job, i would like this new job tenure variable to be able to recognize this and continue counting the number of weeks even after the unemployment spell. I am looking to ultimately have a cumulative count of the total number of weeks an individual holds the same job (no matter consecutively or otherwise).
7 -4 .
8 -4 .
9 -4 .
10 -4 .
11 199701 7
12 199701 8
13 199701 9
let me know if you have any suggestions!
Thank you,
Rebecca