Files
Dss/Chililabdata/newcode/genstd_individual.do
admin 8c43da1d1c Uloading
Uloading
2025-08-02 05:26:16 +07:00

18 lines
564 B
Plaintext

clear all
cd c:\chililabdata\data
use individual
sort individid
drop appround individidGuid motheridGuid fatheridGuid
replace birthdate = birthdate/86400000
format birthdate %td
destring ethnicid, replace
label define ethnic 1 "1. Kinh" 2 "2. San diu" 3 "3. Tay" 4 "4. Hoa" 5 "5. Khac" 6 "6. Thai" 7 "7. Kho me" 8 "8. Man" 9 "4. Tho"
label values ethnic ethnic
rename gender sex
rename ind_name fullname
destring sex, replace
label define sexs 1 "1. Nam" 2 "2. Nu"
label values sex sexs
sort individid
save ..\newcode\data\std_individual, replace