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
Store numeric values into memory to use them to create new data setsI have been reading the Statalist for years and I am thrilled to finally join this forum and potenti…
Infix problem (using invalid varname)Hello, I am trying to read in fixed width data from a .txt file. I am following the documentation f…
How to generate group mean variables for each time?My data is as now code pool time price a1 j1 20190101 1 a1 j1 20190102 2 a1 j2 20180101 …
Precision issues with rounding of a variableHello Statalist, I am using Stata 15.1 and would like to request advice regarding a precision issue…
consecutive observationHi, I have read this https://www.stata.com/support/faqs/d...-observations/, and understand how to k…
Subscribe to:
Post Comments (Atom)
0 Response to Using foreach for two set of groups
Post a Comment