help isocodes

isocodes Match English country codes and names

Syntax

isocodes
cvar
, gen() [options]

where cvar is a string variable containing country names/codes and gen() defines the outputted variables

Output variables
gen(str) Choose the output variable(s). Can contain iso3n, iso2c, and/or iso3c for short ISO 3166 codes; and/or cntryname for full English country names.

Sample restriction
keepregion(str) Restrict sample to the specified country group. May contain oecd, eu, and/or emu.

keepiso3n(num) Restrict sample to countries specified by a list of ISO 3166 numeric codes.

keepiso2c(str) Restrict sample to countries specified by a list of ISO 3166 alpha-2 codes.

keepiso3c(str) Restrict sample to countries specified by a list of ISO 3166 alpha-3 codes.

Other
nolabel Do not label ISO 3166 numeric codes, i.e. the variable created by gen(iso3n).

slow Use Stata native commands instead of Gtools.