*PRODUCING ADDITIONAL COUNTRY/WEIGHT VARIABLES *FOR STANDARD AND SPECIAL EUROBAROMETER DATASETS *SEE ALSO: eb_patch_UK_DE_weights.pdf *GESIS-DAS, EUROBAROMETER DATA SERVICE, Original SPSS version: 2013-07-05, Update 2020-02-17 *Stata Version: 2016-06-23 *NOTE: The variable names in the example below are based on survey 77.1 (ZA5597). For older Eurobarometer surveys the syntax must be adjusted to conform to the supplied V### variable names. generate w3a=w1 replace w3a=0 if (cntry_de == 1) replace w3a=w3a+w3 *formats W3A (F8.5) generate w4a=w1 replace w4a=0 if (cntry_gb == 1) replace w4a=w4a+w4 *formats W4A (F8.5) generate cntr_de=country recode cntr_de (14=4) generate cntr_gb=country recode cntr_gb (10=9) generate w3a4a=w3a replace w3a4a=0 if (cntry_gb == 1) replace w3a4a=w3a4a+w4 generate nation=country recode nation (14=4) (10=9) label variable w3a "WEIGHT RESULT FROM TARGET - CNTR_DE" label variable cntr_de "NATION (GERMANY EAST+WEST)" label variable w4a "WEIGHT RESULT FROM TARGET - CNTR_GB" label variable cntr_gb "NATION (UNITED KINGDOM)" label variable w3a4a "WEIGHT RESULT FROM TARGET - NATION" label variable nation "NATION (UNITED KINGDOM AND GERMANY UNITED)" #delimit ; label define cntr_de 1 "FR - France" 2 "BE - Belgium" 3 "NL - The Netherlands" 4 "DE - GERMANY" 5 "IT - Italy" 6 "LU - Luxembourg" 7 "DK - Denmark" 8 "IE - Ireland" 9 "GB-GBN - Great Britain" 10 "GB-NIR Northern Ireland" 11 "GR - Greece" 12 "ES -Spain" 13 "PT - Portugal" 14 "-" 15 "-" 16 "FI - Finland" 17 "SE - Sweden" 18 "AT - Austria" 19 "CY - Cyprus (Republic)" 20 "CZ - Czech Republic" 21 "EE - Estonia" 22 "HU - Hungary" 23 "LV - Latvia" 24 "LT - Lithuania" 25 "MT - Malta" 26 "PL - Poland" 27 "SK - Slovakia" 28 "SI - Slovenia" 29 "BG - Bulgaria" 30 "RO - Romania" 31 "TR - Turkey" 32 "HR - Croatia" 33 "CY-TCC - Cyprus TCC" 34 "MK - Macedonia/FYROM" 35 "ME - Montenegro" 36 "RS - Serbia" 41 "NO - Norway" 42 "CH - Switzerland" 43 "IS - Iceland" 44 "LI - Liechtenstein"; label define cntr_gb 1 "FR - France" 2 "BE - Belgium" 3 "NL - The Netherlands" 4 "DE-W - Germany West" 5 "IT - Italy" 6 "LU - Luxembourg" 7 "DK - Denmark" 8 "IE - Ireland" 9 "GB - UNITED KINGDOM" 10 "-" 11 "GR - Greece" 12 "ES -Spain" 13 "PT - Portugal" 14 "DE-E - Germany East" 15 "-" 16 "FI - Finland" 17 "SE - Sweden" 18 "AT - Austria" 19 "CY - Cyprus (Republic)" 20 "CZ - Czech Republic" 21 "EE - Estonia" 22 "HU - Hungary" 23 "LV - Latvia" 24 "LT - Lithuania" 25 "MT - Malta" 26 "PL - Poland" 27 "SK - Slovakia" 28 "SI - Slovenia" 29 "BG - Bulgaria" 30 "RO - Romania" 31 "TR - Turkey" 32 "HR - Croatia" 33 "CY-TCC - Cyprus TCC" 34 "MK - Macedonia/FYROM" 35 "ME - Montenegro" 36 "RS - Serbia" 41 "NO - Norway" 42 "CH - Switzerland" 43 "IS - Iceland" 44 "LI - Liechtenstein"; label define nation 1 "FR - France" 2 "BE - Belgium" 3 "NL - The Netherlands" 4 "DE - GERMANY" 5 "IT - Italy" 6 "LU - Luxembourg" 7 "DK - Denmark" 8 "IE - Ireland" 9 "GB - UNITED KINGDOM" 10 "-" 11 "GR - Greece" 12 "ES -Spain" 13 "PT - Portugal" 14 "-" 15 "-" 16 "FI - Finland" 17 "SE - Sweden" 18 "AT - Austria" 19 "CY - Cyprus (Republic)" 20 "CZ - Czech Republic" 21 "EE - Estonia" 22 "HU - Hungary" 23 "LV - Latvia" 24 "LT - Lithuania" 25 "MT - Malta" 26 "PL - Poland" 27 "SK - Slovakia" 28 "SI - Slovenia" 29 "BG - Bulgaria" 30 "RO - Romania" 31 "TR - Turkey" 32 "HR - Croatia" 33 "CY-TCC - Cyprus TCC" 34 "MK - Macedonia/FYROM" 35 "ME - Montenegro" 36 "RS - Serbia" 41 "NO - Norway" 42 "CH - Switzerland" 43 "IS - Iceland" 44 "LI - Liechtenstein"; #delimit cr label values cntr_de cntr_de label values cntr_gb cntr_gb label values nation nation