4# sungmoo
sorry, no chinses keyboard on this computer. i did not really know why there's repeated observations for wave17.what i have roughly done is:
foreach w in a b c d {
use `w'hid `w'pno `w'sex `w'age pid `w'mastat `w'hgspn `w'qfachi `w'fiyr `w'fiyrl ///
using $dir/`w'indresp
sort `w'hid
save `w'ind, replace
use `w'hid `w'tenure `w'hhsize `w'nkids `w'fihhyr using $dir/`w'hhresp
sort `w'hid
merge `w'hid using `w'ind
keep if _merge==3
drop _merge
renpfix `w'
generate wave = index("abcd","`w'")
save wave`w', replace
}
foreach w in a b c {
append using wave`w'
}
xtset pid wave
Thank you very much for your help and patience! I dont know what really to see, just wish you all the best!