Residence region of the current migrants (pmig_region)
Fichier: sn_qm_indiv
Aperçu
Type: Discrète
Format: numeric
Largeur: 9
Décimales: 0
Intervalle: 1-3
Enregistrements valides: 0
Invalide: 0
Catégories
Valeur Catégorie
1 Africa
2 Europe
3 Other
Avertissement: ces statistiques indiquent le nombre d'enregistrements trouvés dans les fichiers de données, et non des nombres pondérés. Ils ne peuvent pas être interpretés comme étant représentatifs de la population concernée.
Others
Notes
Variable calculated from the following variables:
- a11 (In which country?)
- pmigrant (Current migrants: individuals outside HH living abroad)

Stata program:
tostring a11, gen(regi)
gen str3 region = substr(regi,1,3)
gen pmig_region = 1 if region == "993" /* africa */
replace pmig_region = 2 if region== "991" | region == "960" /* europe */
replace pmig_region = 3 if !inlist(region,"991","993","960") /* other */
replace pmig_region=. if pmigrant==0
replace pmig_region=7777 if a11==7777
replace pmig_region=8888 if a11==8888
replace pmig_region=9999 if a11==9999
drop region regi