Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Mario Jose <mariojose276@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Group classification |
Date | Sun, 14 Jul 2013 12:55:14 +0100 |
Dear All, I have a dataset with foreign subsidiaries over a period of time. Each subsidiary is owned by an identified parent company. For each year, there are parent companies with subs in a set of countries y1,.., yn and parents with subs in a different set of companies x1, ..., xm. There are also parent companies with subs in both set of countries. I would like to allocate 0,1 to observations according to whether or not the respective parent has subs in the countries x1,..., xm. For instance, if a parent company has subs in y1, y2, y6 I want to allocate 1 to all these observations, if another parent company has subs in countries y1, y2 and x5 I want to allocate 0 to all subs of that parent (because the parent has a subs in country x5). Any suggestion on how to do this? I will be grateful for any help. Best regards, Mario * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/