Dear All,


I am working on a bilateral data of the form;
exporter importer year trade
Germany France 2002 10000

I am trying to create a dummy following the pair of countries in the global and local sets below.

global EU "AUT BEL BGR CYP CZE DEU DNK ESP EST FIN FRA GBR GRC HRV HUN IRL ITA LTU LUX MLT NLD POL PRT ROU SVK SVN SWE CHE"

local ECOWAS "GHA BEN NGA BFA SEN CIV CPV GMB GIN GNB MLI NER TGO LBR SLE"

Hence I used the command;

foreach x of local EU & y of global ECOWAS {

gen DIV_EU=1 if exporter="x" & importer="y"

}

The above command seems not to work. Any suggestions