*! _incomelevelname <3 Mar 2019 : 20:52:10>                 by João Pedro Azevedo
*                 auto generated and updated using _update_countrymetadata.ado

 program define _incomelevelname

     syntax , match(varname)

*********************

         gen incomelevelname = ""
         replace incomelevelname = "High income"  if `match' == "ABW"
         replace incomelevelname = "Low income"  if `match' == "AFG"
         replace incomelevelname = "Aggregates"  if `match' == "AFR"
         replace incomelevelname = "Lower middle income"  if `match' == "AGO"
         replace incomelevelname = "Upper middle income"  if `match' == "ALB"
         replace incomelevelname = "High income"  if `match' == "AND"
         replace incomelevelname = "Aggregates"  if `match' == "ANR"
         replace incomelevelname = "Aggregates"  if `match' == "ARB"
         replace incomelevelname = "High income"  if `match' == "ARE"
         replace incomelevelname = "High income"  if `match' == "ARG"
         replace incomelevelname = "Upper middle income"  if `match' == "ARM"
         replace incomelevelname = "Upper middle income"  if `match' == "ASM"
         replace incomelevelname = "High income"  if `match' == "ATG"
         replace incomelevelname = "High income"  if `match' == "AUS"
         replace incomelevelname = "High income"  if `match' == "AUT"
         replace incomelevelname = "Upper middle income"  if `match' == "AZE"
         replace incomelevelname = "Low income"  if `match' == "BDI"
         replace incomelevelname = "Aggregates"  if `match' == "BEA"
         replace incomelevelname = "Aggregates"  if `match' == "BEC"
         replace incomelevelname = "High income"  if `match' == "BEL"
         replace incomelevelname = "Low income"  if `match' == "BEN"
         replace incomelevelname = "Low income"  if `match' == "BFA"
         replace incomelevelname = "Lower middle income"  if `match' == "BGD"
         replace incomelevelname = "Upper middle income"  if `match' == "BGR"
         replace incomelevelname = "Aggregates"  if `match' == "BHI"
         replace incomelevelname = "High income"  if `match' == "BHR"
         replace incomelevelname = "High income"  if `match' == "BHS"
         replace incomelevelname = "Upper middle income"  if `match' == "BIH"
         replace incomelevelname = "Aggregates"  if `match' == "BLA"
         replace incomelevelname = "Upper middle income"  if `match' == "BLR"
         replace incomelevelname = "Upper middle income"  if `match' == "BLZ"
         replace incomelevelname = "Aggregates"  if `match' == "BMN"
         replace incomelevelname = "High income"  if `match' == "BMU"
         replace incomelevelname = "Lower middle income"  if `match' == "BOL"
         replace incomelevelname = "Upper middle income"  if `match' == "BRA"
         replace incomelevelname = "High income"  if `match' == "BRB"
         replace incomelevelname = "High income"  if `match' == "BRN"
         replace incomelevelname = "Aggregates"  if `match' == "BSS"
         replace incomelevelname = "Lower middle income"  if `match' == "BTN"
         replace incomelevelname = "Upper middle income"  if `match' == "BWA"
         replace incomelevelname = "Aggregates"  if `match' == "CAA"
         replace incomelevelname = "Low income"  if `match' == "CAF"
         replace incomelevelname = "High income"  if `match' == "CAN"
         replace incomelevelname = "Aggregates"  if `match' == "CEA"
         replace incomelevelname = "Aggregates"  if `match' == "CEB"
         replace incomelevelname = "Aggregates"  if `match' == "CEU"
         replace incomelevelname = "High income"  if `match' == "CHE"
         replace incomelevelname = "High income"  if `match' == "CHI"
         replace incomelevelname = "High income"  if `match' == "CHL"
         replace incomelevelname = "Upper middle income"  if `match' == "CHN"
         replace incomelevelname = "Lower middle income"  if `match' == "CIV"
         replace incomelevelname = "Aggregates"  if `match' == "CLA"
         replace incomelevelname = "Aggregates"  if `match' == "CME"
         replace incomelevelname = "Lower middle income"  if `match' == "CMR"
         replace incomelevelname = "Low income"  if `match' == "COD"
         replace incomelevelname = "Lower middle income"  if `match' == "COG"
         replace incomelevelname = "Upper middle income"  if `match' == "COL"
         replace incomelevelname = "Low income"  if `match' == "COM"
         replace incomelevelname = "Lower middle income"  if `match' == "CPV"
         replace incomelevelname = "Upper middle income"  if `match' == "CRI"
         replace incomelevelname = "Aggregates"  if `match' == "CSA"
         replace incomelevelname = "Aggregates"  if `match' == "CSS"
         replace incomelevelname = "Upper middle income"  if `match' == "CUB"
         replace incomelevelname = "High income"  if `match' == "CUW"
         replace incomelevelname = "High income"  if `match' == "CYM"
         replace incomelevelname = "High income"  if `match' == "CYP"
         replace incomelevelname = "High income"  if `match' == "CZE"
         replace incomelevelname = "Aggregates"  if `match' == "DEA"
         replace incomelevelname = "Aggregates"  if `match' == "DEC"
         replace incomelevelname = "High income"  if `match' == "DEU"
         replace incomelevelname = "Aggregates"  if `match' == "DFS"
         replace incomelevelname = "Lower middle income"  if `match' == "DJI"
         replace incomelevelname = "Aggregates"  if `match' == "DLA"
         replace incomelevelname = "Upper middle income"  if `match' == "DMA"
         replace incomelevelname = "Aggregates"  if `match' == "DMN"
         replace incomelevelname = "Aggregates"  if `match' == "DNF"
         replace incomelevelname = "High income"  if `match' == "DNK"
         replace incomelevelname = "Aggregates"  if `match' == "DNS"
         replace incomelevelname = "Upper middle income"  if `match' == "DOM"
         replace incomelevelname = "Aggregates"  if `match' == "DSA"
         replace incomelevelname = "Aggregates"  if `match' == "DSF"
         replace incomelevelname = "Aggregates"  if `match' == "DSS"
         replace incomelevelname = "Aggregates"  if `match' == "DXS"
         replace incomelevelname = "Upper middle income"  if `match' == "DZA"
         replace incomelevelname = "Aggregates"  if `match' == "EAP"
         replace incomelevelname = "Aggregates"  if `match' == "EAR"
         replace incomelevelname = "Aggregates"  if `match' == "EAS"
         replace incomelevelname = "Aggregates"  if `match' == "ECA"
         replace incomelevelname = "Aggregates"  if `match' == "ECS"
         replace incomelevelname = "Upper middle income"  if `match' == "ECU"
         replace incomelevelname = "Lower middle income"  if `match' == "EGY"
         replace incomelevelname = "Aggregates"  if `match' == "EMU"
         replace incomelevelname = "Low income"  if `match' == "ERI"
         replace incomelevelname = "High income"  if `match' == "ESP"
         replace incomelevelname = "High income"  if `match' == "EST"
         replace incomelevelname = "Low income"  if `match' == "ETH"
         replace incomelevelname = "Aggregates"  if `match' == "EUU"
         replace incomelevelname = "Aggregates"  if `match' == "FCS"
         replace incomelevelname = "High income"  if `match' == "FIN"
         replace incomelevelname = "Upper middle income"  if `match' == "FJI"
         replace incomelevelname = "High income"  if `match' == "FRA"
         replace incomelevelname = "High income"  if `match' == "FRO"
         replace incomelevelname = "Lower middle income"  if `match' == "FSM"
         replace incomelevelname = "Aggregates"  if `match' == "FXS"
         replace incomelevelname = "Upper middle income"  if `match' == "GAB"
         replace incomelevelname = "High income"  if `match' == "GBR"
         replace incomelevelname = "Lower middle income"  if `match' == "GEO"
         replace incomelevelname = "Lower middle income"  if `match' == "GHA"
         replace incomelevelname = "High income"  if `match' == "GIB"
         replace incomelevelname = "Low income"  if `match' == "GIN"
         replace incomelevelname = "Low income"  if `match' == "GMB"
         replace incomelevelname = "Low income"  if `match' == "GNB"
         replace incomelevelname = "Upper middle income"  if `match' == "GNQ"
         replace incomelevelname = "High income"  if `match' == "GRC"
         replace incomelevelname = "Upper middle income"  if `match' == "GRD"
         replace incomelevelname = "High income"  if `match' == "GRL"
         replace incomelevelname = "Upper middle income"  if `match' == "GTM"
         replace incomelevelname = "High income"  if `match' == "GUM"
         replace incomelevelname = "Upper middle income"  if `match' == "GUY"
         replace incomelevelname = "Aggregates"  if `match' == "HIC"
         replace incomelevelname = "High income"  if `match' == "HKG"
         replace incomelevelname = "Lower middle income"  if `match' == "HND"
         replace incomelevelname = "Aggregates"  if `match' == "HPC"
         replace incomelevelname = "High income"  if `match' == "HRV"
         replace incomelevelname = "Low income"  if `match' == "HTI"
         replace incomelevelname = "High income"  if `match' == "HUN"
         replace incomelevelname = "Aggregates"  if `match' == "IBB"
         replace incomelevelname = "Aggregates"  if `match' == "IBD"
         replace incomelevelname = "Aggregates"  if `match' == "IBT"
         replace incomelevelname = "Aggregates"  if `match' == "IDA"
         replace incomelevelname = "Aggregates"  if `match' == "IDB"
         replace incomelevelname = "Lower middle income"  if `match' == "IDN"
         replace incomelevelname = "Aggregates"  if `match' == "IDX"
         replace incomelevelname = "High income"  if `match' == "IMN"
         replace incomelevelname = "Lower middle income"  if `match' == "IND"
         replace incomelevelname = "Aggregates"  if `match' == "INX"
         replace incomelevelname = "High income"  if `match' == "IRL"
         replace incomelevelname = "Upper middle income"  if `match' == "IRN"
         replace incomelevelname = "Upper middle income"  if `match' == "IRQ"
         replace incomelevelname = "High income"  if `match' == "ISL"
         replace incomelevelname = "High income"  if `match' == "ISR"
         replace incomelevelname = "High income"  if `match' == "ITA"
         replace incomelevelname = "Upper middle income"  if `match' == "JAM"
         replace incomelevelname = "Upper middle income"  if `match' == "JOR"
         replace incomelevelname = "High income"  if `match' == "JPN"
         replace incomelevelname = "Upper middle income"  if `match' == "KAZ"
         replace incomelevelname = "Lower middle income"  if `match' == "KEN"
         replace incomelevelname = "Lower middle income"  if `match' == "KGZ"
         replace incomelevelname = "Lower middle income"  if `match' == "KHM"
         replace incomelevelname = "Lower middle income"  if `match' == "KIR"
         replace incomelevelname = "High income"  if `match' == "KNA"
         replace incomelevelname = "High income"  if `match' == "KOR"
         replace incomelevelname = "High income"  if `match' == "KWT"
         replace incomelevelname = "Aggregates"  if `match' == "LAC"
         replace incomelevelname = "Lower middle income"  if `match' == "LAO"
         replace incomelevelname = "Upper middle income"  if `match' == "LBN"
         replace incomelevelname = "Low income"  if `match' == "LBR"
         replace incomelevelname = "Upper middle income"  if `match' == "LBY"
         replace incomelevelname = "Upper middle income"  if `match' == "LCA"
         replace incomelevelname = "Aggregates"  if `match' == "LCN"
         replace incomelevelname = "Aggregates"  if `match' == "LCR"
         replace incomelevelname = "Aggregates"  if `match' == "LDC"
         replace incomelevelname = "Aggregates"  if `match' == "LIC"
         replace incomelevelname = "High income"  if `match' == "LIE"
         replace incomelevelname = "Lower middle income"  if `match' == "LKA"
         replace incomelevelname = "Aggregates"  if `match' == "LMC"
         replace incomelevelname = "Aggregates"  if `match' == "LMY"
         replace incomelevelname = "Lower middle income"  if `match' == "LSO"
         replace incomelevelname = "Aggregates"  if `match' == "LTE"
         replace incomelevelname = "High income"  if `match' == "LTU"
         replace incomelevelname = "High income"  if `match' == "LUX"
         replace incomelevelname = "High income"  if `match' == "LVA"
         replace incomelevelname = "High income"  if `match' == "MAC"
         replace incomelevelname = "High income"  if `match' == "MAF"
         replace incomelevelname = "Lower middle income"  if `match' == "MAR"
         replace incomelevelname = "Aggregates"  if `match' == "MCA"
         replace incomelevelname = "High income"  if `match' == "MCO"
         replace incomelevelname = "Lower middle income"  if `match' == "MDA"
         replace incomelevelname = "Aggregates"  if `match' == "MDE"
         replace incomelevelname = "Low income"  if `match' == "MDG"
         replace incomelevelname = "Upper middle income"  if `match' == "MDV"
         replace incomelevelname = "Aggregates"  if `match' == "MEA"
         replace incomelevelname = "Upper middle income"  if `match' == "MEX"
         replace incomelevelname = "Upper middle income"  if `match' == "MHL"
         replace incomelevelname = "Aggregates"  if `match' == "MIC"
         replace incomelevelname = "Upper middle income"  if `match' == "MKD"
         replace incomelevelname = "Low income"  if `match' == "MLI"
         replace incomelevelname = "High income"  if `match' == "MLT"
         replace incomelevelname = "Lower middle income"  if `match' == "MMR"
         replace incomelevelname = "Aggregates"  if `match' == "MNA"
         replace incomelevelname = "Upper middle income"  if `match' == "MNE"
         replace incomelevelname = "Lower middle income"  if `match' == "MNG"
         replace incomelevelname = "High income"  if `match' == "MNP"
         replace incomelevelname = "Low income"  if `match' == "MOZ"
         replace incomelevelname = "Lower middle income"  if `match' == "MRT"
         replace incomelevelname = "Upper middle income"  if `match' == "MUS"
         replace incomelevelname = "Low income"  if `match' == "MWI"
         replace incomelevelname = "Upper middle income"  if `match' == "MYS"
         replace incomelevelname = "Aggregates"  if `match' == "NAC"
         replace incomelevelname = "Aggregates"  if `match' == "NAF"
         replace incomelevelname = "Upper middle income"  if `match' == "NAM"
         replace incomelevelname = "High income"  if `match' == "NCL"
         replace incomelevelname = "Low income"  if `match' == "NER"
         replace incomelevelname = "Lower middle income"  if `match' == "NGA"
         replace incomelevelname = "Lower middle income"  if `match' == "NIC"
         replace incomelevelname = "High income"  if `match' == "NLD"
         replace incomelevelname = "Aggregates"  if `match' == "NLS"
         replace incomelevelname = "High income"  if `match' == "NOR"
         replace incomelevelname = "Low income"  if `match' == "NPL"
         replace incomelevelname = "Aggregates"  if `match' == "NRS"
         replace incomelevelname = "Upper middle income"  if `match' == "NRU"
         replace incomelevelname = "Aggregates"  if `match' == "NXS"
         replace incomelevelname = "High income"  if `match' == "NZL"
         replace incomelevelname = "Aggregates"  if `match' == "OED"
         replace incomelevelname = "High income"  if `match' == "OMN"
         replace incomelevelname = "Aggregates"  if `match' == "OSS"
         replace incomelevelname = "Lower middle income"  if `match' == "PAK"
         replace incomelevelname = "High income"  if `match' == "PAN"
         replace incomelevelname = "Upper middle income"  if `match' == "PER"
         replace incomelevelname = "Lower middle income"  if `match' == "PHL"
         replace incomelevelname = "High income"  if `match' == "PLW"
         replace incomelevelname = "Lower middle income"  if `match' == "PNG"
         replace incomelevelname = "High income"  if `match' == "POL"
         replace incomelevelname = "Aggregates"  if `match' == "PRE"
         replace incomelevelname = "High income"  if `match' == "PRI"
         replace incomelevelname = "Low income"  if `match' == "PRK"
         replace incomelevelname = "High income"  if `match' == "PRT"
         replace incomelevelname = "Upper middle income"  if `match' == "PRY"
         replace incomelevelname = "Lower middle income"  if `match' == "PSE"
         replace incomelevelname = "Aggregates"  if `match' == "PSS"
         replace incomelevelname = "Aggregates"  if `match' == "PST"
         replace incomelevelname = "High income"  if `match' == "PYF"
         replace incomelevelname = "High income"  if `match' == "QAT"
         replace incomelevelname = "Upper middle income"  if `match' == "ROU"
         replace incomelevelname = "Aggregates"  if `match' == "RRS"
         replace incomelevelname = "Aggregates"  if `match' == "RSO"
         replace incomelevelname = "Upper middle income"  if `match' == "RUS"
         replace incomelevelname = "Low income"  if `match' == "RWA"
         replace incomelevelname = "Aggregates"  if `match' == "SAS"
         replace incomelevelname = "High income"  if `match' == "SAU"
         replace incomelevelname = "Aggregates"  if `match' == "SCE"
         replace incomelevelname = "Lower middle income"  if `match' == "SDN"
         replace incomelevelname = "Low income"  if `match' == "SEN"
         replace incomelevelname = "High income"  if `match' == "SGP"
         replace incomelevelname = "Lower middle income"  if `match' == "SLB"
         replace incomelevelname = "Low income"  if `match' == "SLE"
         replace incomelevelname = "Lower middle income"  if `match' == "SLV"
         replace incomelevelname = "High income"  if `match' == "SMR"
         replace incomelevelname = "Low income"  if `match' == "SOM"
         replace incomelevelname = "Upper middle income"  if `match' == "SRB"
         replace incomelevelname = "Aggregates"  if `match' == "SSA"
         replace incomelevelname = "Low income"  if `match' == "SSD"
         replace incomelevelname = "Aggregates"  if `match' == "SSF"
         replace incomelevelname = "Aggregates"  if `match' == "SST"
         replace incomelevelname = "Lower middle income"  if `match' == "STP"
         replace incomelevelname = "Upper middle income"  if `match' == "SUR"
         replace incomelevelname = "High income"  if `match' == "SVK"
         replace incomelevelname = "High income"  if `match' == "SVN"
         replace incomelevelname = "High income"  if `match' == "SWE"
         replace incomelevelname = "Lower middle income"  if `match' == "SWZ"
         replace incomelevelname = "High income"  if `match' == "SXM"
         replace incomelevelname = "Aggregates"  if `match' == "SXZ"
         replace incomelevelname = "High income"  if `match' == "SYC"
         replace incomelevelname = "Low income"  if `match' == "SYR"
         replace incomelevelname = "High income"  if `match' == "TCA"
         replace incomelevelname = "Low income"  if `match' == "TCD"
         replace incomelevelname = "Aggregates"  if `match' == "TEA"
         replace incomelevelname = "Aggregates"  if `match' == "TEC"
         replace incomelevelname = "Low income"  if `match' == "TGO"
         replace incomelevelname = "Upper middle income"  if `match' == "THA"
         replace incomelevelname = "Low income"  if `match' == "TJK"
         replace incomelevelname = "Upper middle income"  if `match' == "TKM"
         replace incomelevelname = "Aggregates"  if `match' == "TLA"
         replace incomelevelname = "Lower middle income"  if `match' == "TLS"
         replace incomelevelname = "Aggregates"  if `match' == "TMN"
         replace incomelevelname = "Upper middle income"  if `match' == "TON"
         replace incomelevelname = "Aggregates"  if `match' == "TSA"
         replace incomelevelname = "Aggregates"  if `match' == "TSS"
         replace incomelevelname = "High income"  if `match' == "TTO"
         replace incomelevelname = "Lower middle income"  if `match' == "TUN"
         replace incomelevelname = "Upper middle income"  if `match' == "TUR"
         replace incomelevelname = "Upper middle income"  if `match' == "TUV"
         replace incomelevelname = "High income"  if `match' == "TWN"
         replace incomelevelname = "Low income"  if `match' == "TZA"
         replace incomelevelname = "Low income"  if `match' == "UGA"
         replace incomelevelname = "Lower middle income"  if `match' == "UKR"
         replace incomelevelname = "Aggregates"  if `match' == "UMC"
         replace incomelevelname = "High income"  if `match' == "URY"
         replace incomelevelname = "High income"  if `match' == "USA"
         replace incomelevelname = "Lower middle income"  if `match' == "UZB"
         replace incomelevelname = "Upper middle income"  if `match' == "VCT"
         replace incomelevelname = "Upper middle income"  if `match' == "VEN"
         replace incomelevelname = "High income"  if `match' == "VGB"
         replace incomelevelname = "High income"  if `match' == "VIR"
         replace incomelevelname = "Lower middle income"  if `match' == "VNM"
         replace incomelevelname = "Lower middle income"  if `match' == "VUT"
         replace incomelevelname = "Aggregates"  if `match' == "WLD"
         replace incomelevelname = "Upper middle income"  if `match' == "WSM"
         replace incomelevelname = "Lower middle income"  if `match' == "XKX"
         replace incomelevelname = "Aggregates"  if `match' == "XZN"
         replace incomelevelname = "Low income"  if `match' == "YEM"
         replace incomelevelname = "Upper middle income"  if `match' == "ZAF"
         replace incomelevelname = "Lower middle income"  if `match' == "ZMB"
         replace incomelevelname = "Low income"  if `match' == "ZWE"

*********************

 lab var incomelevelname         "Income Level Name"

*********************

 end