Dear all,
currently I'm working on bilateral trade data for Germany. I have export and import values for Germany with 25 other countries within sectors. I have almost 900 sectors. I wanna regress bilateral German export on exchange rate and GDP with the given country. Therefore I need to specify sectors as a unique id. E.g I have data on apparel sector in 2001 for Austria. I have data on the same sector in the same year for Turkey an so on. To deal with this issue I encoded countries as numbers, so that AUS is 1 and USA is 25. Sectors are described with numbers, Some of them are 6-digits. Therefore I multiplied country number times 1000000 and added that to the sector. However it turns out stata rounds up big numbers. E.g. I have sector 610339 in 2001 for Turkey. Stata calculated the id for it as 24610340. I have sector 610341 in 2001 for TUR and stata calculated it as 24610340 again. Please help me
currently I'm working on bilateral trade data for Germany. I have export and import values for Germany with 25 other countries within sectors. I have almost 900 sectors. I wanna regress bilateral German export on exchange rate and GDP with the given country. Therefore I need to specify sectors as a unique id. E.g I have data on apparel sector in 2001 for Austria. I have data on the same sector in the same year for Turkey an so on. To deal with this issue I encoded countries as numbers, so that AUS is 1 and USA is 25. Sectors are described with numbers, Some of them are 6-digits. Therefore I multiplied country number times 1000000 and added that to the sector. However it turns out stata rounds up big numbers. E.g. I have sector 610339 in 2001 for Turkey. Stata calculated the id for it as 24610340. I have sector 610341 in 2001 for TUR and stata calculated it as 24610340 again. Please help me
Comment