Dear all,
I have five survey waves:
1: 1990
2: 1995
3: 2000
4: 2007
5: 2010
I have data on age for individuals in this five waves. However, sometimes the age for the same individual in wave 2 is miscoded such that it is not five years (or four years) greater than it was in wave 1. I also have instances where I have data for wave 2 age, but missing for wave 1 and would like to replace the missing value with the value of age in wave 2 minus 5, giving me the age of the individual in wave 1. In other instances, I have missings in wave 2, but data in wave 5 and would like to replace the missing in wave 2 with the difference in age between the years of wave 2 and 5. An example of my data is presented below:
clear
input long pid float wave double age
1060003 2 .
1080001 5 59
1080003 1 15
1080003 2 .
1080004 5 34
1080005 5 32
1080006 5 30
1080007 5 28
1080008 5 26
1080009 5 24
1220006 3 15
1220006 4 22
1220006 5 28
1220008 5 24
1240002 1 40
Thank you in advance.
I have five survey waves:
1: 1990
2: 1995
3: 2000
4: 2007
5: 2010
I have data on age for individuals in this five waves. However, sometimes the age for the same individual in wave 2 is miscoded such that it is not five years (or four years) greater than it was in wave 1. I also have instances where I have data for wave 2 age, but missing for wave 1 and would like to replace the missing value with the value of age in wave 2 minus 5, giving me the age of the individual in wave 1. In other instances, I have missings in wave 2, but data in wave 5 and would like to replace the missing in wave 2 with the difference in age between the years of wave 2 and 5. An example of my data is presented below:
clear
input long pid float wave double age
1060003 2 .
1080001 5 59
1080003 1 15
1080003 2 .
1080004 5 34
1080005 5 32
1080006 5 30
1080007 5 28
1080008 5 26
1080009 5 24
1220006 3 15
1220006 4 22
1220006 5 28
1220008 5 24
1240002 1 40
Thank you in advance.
Comment