Dear All,
I have two groups of countries and pairwise data- importers and exporters. Eg. Importers= ITALY, FRANCE, GERMANY etc. and exporters=ITALY, FRANCE, GERMANY, CHINA, UK, USA etc. Let EMU countries be ITALY, FRANCE, GERMANY
I want to use the "foreach" command or any command to create a new variable say EMU which takes 1 for any pair of EMU countries and 0 otherwise.
Thank you.
Related Posts with Using foreach for two set of groups
Defining duplicates through extracting day from date-time variableHi all, I have scoured statalist for some time but have not found the answer to this question. Fir…
How to mix the obs of two variables?Hello everyone, This is my database. Each org_uuid is matched with a specific investor_uuid. This a…
Intended Nickell bias to test the usefullness of different fixed effectsHi all, I am working on panel data and I assume that at least one of my explanatory variables is en…
How to find optimal bandwidth?Hi all, when plotting Code: twoway (lpoly logexptot bin if D==0, degree (1) kernel(epanechnikov))…
Is "no anticipation effect" a must in testing Difference-in-Difference?I am wondering if we "must" test the "no anticipation effect" if the parallel trend assumption is sa…
Subscribe to:
Post Comments (Atom)
0 Response to Using foreach for two set of groups
Post a Comment