Hello all,
I'm trying to estimate a gravity model with trade data that is disaggregated at industry level and trying to include country-pair fixed effects in my regression. I'm aware when you want to generate country pair id, you egen pairid = group(importer exporter). But what I have been wondering is when you generate pair id like above, that means a pair of USA(importer) and Canada(exporter) would be different from a pair of Canada(importer) and USA(exporter).
So my question is, is it right to run regression with country-pair fe with pair ids just like above? From my understanding, we include country-pair fe to observe heterogeneity between each country pair. So then, wouldn't it be more appropriate for me to have the same pair id for the pair of USA and Canda regardless of which one of these two country is importer or exporter? (Canada USA(imp)-Canada(exp) and Canada(imp)-USA(exp) both pair should have the same pair id since they both pairs are comprised of the same countries) Secondly, if so, then what is the command I can use to generate the same pair id for the USA and Canada regardless of them being importer or exporter?
Thank you
Related Posts with Country-pair specific id for gravity model
tuples:observation numbers out of rangewhen the items are more than 10, it will cause the problem of observation numbers out of range, can …
stcrreg and univariable analysisHello everyone, I am getting started and was wondering what would be the best way to approach categ…
Means TestHi everyone I know that perhaps I should not ask this question here. But I hope you can help me. I w…
Summarising the results of different regressions into one tableHi, I am trying to tabulate the results for multiple regressions into one table - I am trying to us…
Calculating multi-period growth rateHello, I am new to Stata. I'm using Stata version 14. I am working with a balanced panel data set ov…
Subscribe to:
Post Comments (Atom)
0 Response to Country-pair specific id for gravity model
Post a Comment