Hi everyone,
I am working with panel data (in long format) containing repeated observations for individuals over a number of years. I have a variable containing each individual's highest attained level of education ('educ') at the time of interview. So the 4 interviews while an individual was in high school would contain the values 9,10,11,12 for the variable 'educ'. I also have a variable containing the unemployment rate 'un' in each year.
I want to construct a variable for each individual that contains the unemployment rate 'un' in the first year after the last change in 'educ'
For example, consider an individual who finishes high school, takes some time off, and then goes to college (and finishes). Then we have the following 'educ', 'un' pairs:
10 2.4
11 2.5
12 2.2
12 3.1
12 3.2
13 2.8
14 2.7
15 2.6
16 2.5
16 2.4
16 2.3
For this individual, I want the new variable to take on the value of 2.4.
Thoughts on how to implement this? Sorry for all of the questions, I'm slowly teaching myself these things but your help is invaluable!
I am working with panel data (in long format) containing repeated observations for individuals over a number of years. I have a variable containing each individual's highest attained level of education ('educ') at the time of interview. So the 4 interviews while an individual was in high school would contain the values 9,10,11,12 for the variable 'educ'. I also have a variable containing the unemployment rate 'un' in each year.
I want to construct a variable for each individual that contains the unemployment rate 'un' in the first year after the last change in 'educ'
For example, consider an individual who finishes high school, takes some time off, and then goes to college (and finishes). Then we have the following 'educ', 'un' pairs:
10 2.4
11 2.5
12 2.2
12 3.1
12 3.2
13 2.8
14 2.7
15 2.6
16 2.5
16 2.4
16 2.3
For this individual, I want the new variable to take on the value of 2.4.
Thoughts on how to implement this? Sorry for all of the questions, I'm slowly teaching myself these things but your help is invaluable!
Comment