Dear statalist users,
I'm trying to construct an internationalization variable and for this I need to know the number of foreign countries a firm has subsidiaries in and the total number of foreign subsidiaries of the firm.
The data that I obtained from Orbis gives a total number of subsidiaries including the domestic ones, so that one is of no use unfortunately.
So I was wondering if someone knows a code so I can get variables that counts the countries per firm and a variable that counts the number of subsidiaries per firm.
Some of my data is stated below:
Kind regards,
Marnik
I'm trying to construct an internationalization variable and for this I need to know the number of foreign countries a firm has subsidiaries in and the total number of foreign subsidiaries of the firm.
The data that I obtained from Orbis gives a total number of subsidiaries including the domestic ones, so that one is of no use unfortunately.
So I was wondering if someone knows a code so I can get variables that counts the countries per firm and a variable that counts the number of subsidiaries per firm.
Some of my data is stated below:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int companynumber str101 company double revenue long employees double(rd netincome totalassets) int subsidiaries double(export sales debt equity) long(country subcountry industrycode) 1 "VOLKSWAGEN AG" 295200881.996155 643297 8766324.5344162 15045459.3172073 598702589.898348 1154 . 295200881.996155 149069423.28763 165534030.491352 1 145 214 1 "" . . . . . . . . . . . 102 . 1 "" . . . . . . . . . . . 151 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 41 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 102 . 1 "" . . . . . . . . . . . 113 . 1 "" . . . . . . . . . . . 114 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 103 . 1 "" . . . . . . . . . . . 151 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 122 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 62 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 28 . 1 "" . . . . . . . . . . . 5 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 7 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 6 . 1 "" . . . . . . . . . . . 151 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 140 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 118 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 127 . 1 "" . . . . . . . . . . . 6 . 1 "" . . . . . . . . . . . 6 . 1 "" . . . . . . . . . . . 28 . 1 "" . . . . . . . . . . . 7 . 1 "" . . . . . . . . . . . 11 . 1 "" . . . . . . . . . . . 23 . 1 "" . . . . . . . . . . . 19 . 1 "" . . . . . . . . . . . 59 . 1 "" . . . . . . . . . . . 70 . 1 "" . . . . . . . . . . . 86 . 1 "" . . . . . . . . . . . 102 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 102 . 1 "" . . . . . . . . . . . 128 . 1 "" . . . . . . . . . . . 43 . 1 "" . . . . . . . . . . . 1 . 1 "" . . . . . . . . . . . 141 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 6 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 145 . 1 "" . . . . . . . . . . . 67 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 46 . 1 "" . . . . . . . . . . . 19 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 23 . 1 "" . . . . . . . . . . . 28 . 1 "" . . . . . . . . . . . 28 . 1 "" . . . . . . . . . . . 28 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 47 . 1 "" . . . . . . . . . . . 23 . 1 "" . . . . . . . . . . . 1 . end label values country country label def country 1 "DE", modify label values subcountry subcountry label def subcountry 1 "AE", modify label def subcountry 5 "AR", modify label def subcountry 6 "AT", modify label def subcountry 7 "AU", modify label def subcountry 11 "BE", modify label def subcountry 19 "BR", modify label def subcountry 23 "CA", modify label def subcountry 28 "CN", modify label def subcountry 41 "EE", modify label def subcountry 43 "ES", modify label def subcountry 46 "FR", modify label def subcountry 47 "GB", modify label def subcountry 59 "HU", modify label def subcountry 62 "IL", modify label def subcountry 67 "IT", modify label def subcountry 70 "JP", modify label def subcountry 86 "LU", modify label def subcountry 102 "MX", modify label def subcountry 103 "MY", modify label def subcountry 113 "PE", modify label def subcountry 114 "PH", modify label def subcountry 118 "PT", modify label def subcountry 122 "RS", modify label def subcountry 127 "SE", modify label def subcountry 128 "SG", modify label def subcountry 140 "TR", modify label def subcountry 141 "TW", modify label def subcountry 145 "US", modify label def subcountry 151 "ZA", modify label values industrycode cpnycode label def cpnycode 214 "2910", modify
Marnik

Comment