Good afternoon Dear Statalists,
I am going to compute the share of immigrants from the source country that are in skill groups (Expgroup & sk_rat_quartile).
To be more clear there is a variable "nacio" when PT is native when anything else is immigrant (!="PT")
I am going to obtain the share of immigrants, not natives, based on source countries. For instance, I need to know whats the share of English people, here shows with the UK in "nacio" variable. The share immigrants separately by their own country is required. Any ideas really appreciated.
Cheers,
Paris
I am going to compute the share of immigrants from the source country that are in skill groups (Expgroup & sk_rat_quartile).
To be more clear there is a variable "nacio" when PT is native when anything else is immigrant (!="PT")
I am going to obtain the share of immigrants, not natives, based on source countries. For instance, I need to know whats the share of English people, here shows with the UK in "nacio" variable. The share immigrants separately by their own country is required. Any ideas really appreciated.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float Expgroup byte sk_rat_quartile str2 nacio 2 3 "PT" 5 3 "PT" 7 3 "UK" 7 3 "PT" 7 3 "EU" 7 3 "PT" 5 3 "PT" 4 3 "PT" 7 3 "PT" 5 3 "UK" 2 3 "PT" 6 3 "PT" 5 3 "PT" 4 3 "PT" 7 3 "PT" 4 3 "PT" 8 3 "PT" 7 3 "PT" 5 3 "SW" 5 3 "PT" 4 3 "PT" 8 3 "PT" 6 3 "SP" 4 3 "PT" 4 3 "PT" 5 3 "PT" 7 3 "PT" 7 3 "PT" 2 3 "PT" 5 3 "PT" 4 3 "PR" 3 3 "PT" 7 3 "PT" 4 3 "GR" 8 3 "PT" 4 3 "PT" 6 3 "PT" 2 3 "PT" 7 3 "PT" 6 3 "US" 7 3 "PT" 8 3 "PT" 3 3 "IR" 7 3 "PT" 6 3 "PT" 7 3 "SP" 7 3 "PT" 5 3 "AO" 2 3 "PT" 6 3 "PT" 5 3 "PT" 6 3 "ES" 5 3 "PT" 2 3 "PT" 8 3 "PT" 7 3 "UK" 7 3 "PT" end
Paris
Comment