I'm using unbalenced panal data and want to copy missing values for "date of birth". In the first questionnaire they didn't ask for "date of birth". It was added later on (year x), but the variable appears only once per person. To keep the survey on the same size new persons were added year after year. The persons hat to answer the question of "year of birth" always on their first questionnaire (year y).
I tried the comand:
Code:
bysort id (year) : replace Birth = Birth[_n-1] if Birth == -8|-5
I wish you guys a nice christmas
0 Response to Panal Data copying missing characteristic data
Post a Comment