18 lines
564 B
Plaintext
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
|