Hi everybody
I need to fill in some values. Here is an example dataset.
The first observation in education is when the individual starts an education and the next observation in education is when the individual ends the education. I need to fill in the rows between the first and the second observation, thus indicating the entire period of an educational program. So, what I need is the variabel called wanted.
I have looked into this but unfortunately I cannot make it work.
Best
Gutav
I need to fill in some values. Here is an example dataset.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(time id education wanted) 1 9999 . . 2 9999 . . 3 9999 . . 4 9999 20 20 5 9999 . 20 6 9999 . 20 7 9999 . 20 8 9999 . 20 9 9999 . 20 10 9999 20 20 11 9999 . . 12 9999 . . 1 1000 . . 2 1000 25 25 3 1000 . 25 4 1000 . 25 5 1000 . 25 6 1000 25 25 7 1000 . . 8 1000 . . 9 1000 30 30 10 1000 . 30 11 1000 30 30 12 1000 . . end
The first observation in education is when the individual starts an education and the next observation in education is when the individual ends the education. I need to fill in the rows between the first and the second observation, thus indicating the entire period of an educational program. So, what I need is the variabel called wanted.
I have looked into this but unfortunately I cannot make it work.
Best
Gutav
Comment