Dear Joao Santos Silva , Tom Zylkin and Jeff Wooldridge
I am estimating the panel gravity model of trade with endogeneous regressor. The dependent variable (y) is nominal trade values in levels, expressed in exponential model as:
yij,t = exp(Xa)epsilonij,t (1)
and partioned X = [x'1, x'2], where x'1 is vector of ENDEGENEOUS regressors (in my case, this include just a single ENDEGENEOUS regressor)and x'2 is vector of EXOGENEOUS variables and epsilonij,t is multiplicative error term. To further elaborate it, let x'1 is importer-specific time-variant ENDEGENEOUS regressor (say, index of labor laws). Supose we instrument x1 with indicator for countrys' colonial status (i.e., dummies for British and French colony). Further x'2 = [distanceijBB, contiguityijBB, common languageijBB, human capitaljt, trade opennessjt, populationjt] is a vector of time-constant GRAVITY specific (distance, contiguity etc.) and time-variant country-specific [human capitaljt, trade opennessjt, populationjt] EXOGENEOUS variables. I am using Baier and Bergstrand (2009) transformation on bilateral variables (denoted by superscript BB) that uses first-order Taylor series expansion to approximate the multilateral resistance. As I mentioned above, I assume the variables in x'2 are exogeneous.
Since my model using BB transformation to approximte MRTs and does not not require to include effects, therefore ivpoisson which otherwise is not immune to incidental parameter problem should be fine in my case, since no fixed effects are specified. therefore i tried running
Question 1: I specify British and French as an instrument for x1 . This code worked fine but at the end of output table, it say apart from British and French, it uses all the exogeneous variables as instruments for x1. The magnitude of coefficient for x1 is (positive) but above the theoretically acceptable range (it is 5.43). I want to know, what is the problem here, to which I am clueless about. Why the effect of x1 is large enough to justify ?
Instead of using gmm estimator, I also tried one step control function estimator
Question 2: Here I get totally different results compare to gmm estimator as in previous case. The parameter of interest changes sign and is negative with magnitude of coefficient (<1). I am not sure what might be happening here- whether or not ivpoisson work well in case of gravity with panel data or it is using too many instruments for endogenous regressor or is senstive to specifying gmm vs cfunction ?
Apart from that, I also run ivppml (from the log of gravity website), the results throw an error message
Trade_Value has very large values, consider rescaling
model is not identified; there are more parameters, 11, than instruments, 4
As suggested by Tom Zylkin , I also tried running ivgravity . The STATA (.ado) file, that compliments this estimation can be found here . My codes are:
This throws an error message - moremata- is required; type -ssc install moremata- to obtain it. When I tried
It throws an error message:
file http://fmwww.bc.edu/repec/bocode/m/stata.toc not found
server says file temporarily redirected to https://wifilogin.du.ac.in/onboardpo...85&origurl=htt
> p://fmwww.bc.edu/repec/bocode/m/stata.toc
http://fmwww.bc.edu/repec/bocode/m/ either
1) is not a valid URL, or
2) could not be contacted, or
3) is not a Stata download site (has no stata.toc file)
Question 3: I am not sure why ivgravity is not working/or is it specific to cross-section data, while I have panel gravity model. ?
I am sorry for the long query.
PLEASE GET BACK TO ME, I SHALL BE VERY THANKFUL
I am estimating the panel gravity model of trade with endogeneous regressor. The dependent variable (y) is nominal trade values in levels, expressed in exponential model as:
yij,t = exp(Xa)epsilonij,t (1)
and partioned X = [x'1, x'2], where x'1 is vector of ENDEGENEOUS regressors (in my case, this include just a single ENDEGENEOUS regressor)and x'2 is vector of EXOGENEOUS variables and epsilonij,t is multiplicative error term. To further elaborate it, let x'1 is importer-specific time-variant ENDEGENEOUS regressor (say, index of labor laws). Supose we instrument x1 with indicator for countrys' colonial status (i.e., dummies for British and French colony). Further x'2 = [distanceijBB, contiguityijBB, common languageijBB, human capitaljt, trade opennessjt, populationjt] is a vector of time-constant GRAVITY specific (distance, contiguity etc.) and time-variant country-specific [human capitaljt, trade opennessjt, populationjt] EXOGENEOUS variables. I am using Baier and Bergstrand (2009) transformation on bilateral variables (denoted by superscript BB) that uses first-order Taylor series expansion to approximate the multilateral resistance. As I mentioned above, I assume the variables in x'2 are exogeneous.
Since my model using BB transformation to approximte MRTs and does not not require to include effects, therefore ivpoisson which otherwise is not immune to incidental parameter problem should be fine in my case, since no fixed effects are specified. therefore i tried running
Code:
ivpoisson gmm Trade_Value distanceijBB contiguityijBB commonlanguageijBB humancapitaljt tradeopennessjt populationjt (x1= British French)
Instead of using gmm estimator, I also tried one step control function estimator
Code:
ivpoisson cfunction Trade_Value distanceijBB contiguityijBB commonlanguageijBB humancapitaljt tradeopennessjt populationjt (x1= British French)
Apart from that, I also run ivppml (from the log of gravity website), the results throw an error message
Trade_Value has very large values, consider rescaling
model is not identified; there are more parameters, 11, than instruments, 4
Code:
ivppml Trade_Value distanceijBB contiguityijBB commonlanguageijBB humancapitaljt tradeopennessjt populationjt, inst(British French)
Code:
ivgravity Trade_Value distanceijBB contiguityijBB commonlanguageijBB humancapitaljt tradeopennessjt populationjt (x1= British French), indn(iso_j) indm(iso_i)
Code:
ssc install moremata
file http://fmwww.bc.edu/repec/bocode/m/stata.toc not found
server says file temporarily redirected to https://wifilogin.du.ac.in/onboardpo...85&origurl=htt
> p://fmwww.bc.edu/repec/bocode/m/stata.toc
http://fmwww.bc.edu/repec/bocode/m/ either
1) is not a valid URL, or
2) could not be contacted, or
3) is not a Stata download site (has no stata.toc file)
Question 3: I am not sure why ivgravity is not working/or is it specific to cross-section data, while I have panel gravity model. ?
I am sorry for the long query.
PLEASE GET BACK TO ME, I SHALL BE VERY THANKFUL
Comment