I am a novice with Stata and I am trying to organize my data for a gravity model of trade. I got separate export and import trade data from the OECD with a column for country and then each column for each month ( Jan 1970, Feb 1970, March 1970..etc). I am wondering if this format is proper to do a regression of the gravity model. I also adding distance and terror data to these datasets. I am wanting to see how terrorism affects imports and exports. Here is an excerpt example of how an export dataset looks in Excel:
I'm sorry, but I don't know how to show it in the Stata Command.
If this is not the correct format, can you please explain to me how I can put this data into the correct format? Please explain as plainly as possible because I am new to Stata.
country a | Country b | Jan-1970 | Feb-1970 | Mar-1970 | Apr-1970 | May-1970 | Jun-1970 | Jul-1970 | Aug-1970 | Sep-1970 | Oct-1970 | Nov-1970 | Dec-1970 | Jan-1971 | Feb-1971 | Mar-1971 | Apr-1971 |
afghanistan | Australia | .. | .. | 1000 | .. | .. | 9000 | .. | .. | .. | .. | .. | .. | 1000 | .. | .. | .. |
afghanistan | Austria | 35000 | 10000 | 17000 | 14000 | 7000 | 23000 | 26000 | 31000 | 13000 | 82000 | 50000 | 48000 | 22000 | 30000 | 14000 | 19000 |
afghanistan | Belgium | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. |
afghanistan | Canada | 12000 | 17000 | 2000 | 5000 | 55000 | 11000 | 28000 | 19000 | 105000 | 18000 | 46000 | 77000 | 693000 | 2000 | 38000 | 5000 |
afghanistan | Chile | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. |
afghanistan | Czech Republic | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. | .. |
If this is not the correct format, can you please explain to me how I can put this data into the correct format? Please explain as plainly as possible because I am new to Stata.
Comment