Best Statalisters
I am trying to estimate a gravity model for trade effects of trade preference scheme GSP+ accession for my bachelor's thesis. I am using panel data for 49 exporters and 15 importers.
I want to run regressions using OLS, PPML (xtpoission) and Negative Binomial (xtnbreg), for all three doing 1) one without any FE's, 2) one with country and year fixed effects, and 3) one with country-pair and year effects. I have generated time-specific yearly dummies, country-spec dummies and pair-spec dummies. I am however running into trouble, getting unexpected results and STATA saying "cannot compute an improvement -- discontinuous region encountered" for both xtpoisson and xtnbreg. Perhaps you could help me out explaining what I do wrong?
Please note; I am very new to stata.
The commands I have tried for xtpoission and xtnbreg are:
1) xtpoisson without any FE's:
[xtpoisson imports LnGDPexp LnGDPimp Lndist LnPOPexp LnPOPimp contig comlang_off col45 smctry GSPplus, vce(robust)]
2) xtpoisson with country-spec and year FE's:
[xtpoisson imports LnGDPexp LnGDPimp Lndist LnPOPexp LnPOPimp contig comlang_off col45 smctry GSPplus FE_imp* FE_exp* FE_year*, vce(robust)]
3) xtpoisson with pair-specific and year fixed effects:
[xtpoisson imports LnGDPexp LnGDPimp Lndist LnPOPexp LnPOPimp contig comlang_off col45 smctry GSPplus FE_year*, fe vce(robust)]
4) xtnbreg without any FE's
[xtnbreg imports LnGDPexp LnGDPimp Lndist LnPOPexp LnPOPimp i.contig i.comlang_off i.col45 i.smctry i.GSPplus, vce(oim)]
5) xtnbreg with country-spec and year FE's:
[xtnbreg imports LnGDPexp LnGDPimp Lndist LnPOPexp LnPOPimp i.contig i.comlang_off i.col45 i.smctry i.GSPplus FE_imp* FE_exp* FE_year*, vce(oim)]
6) xtnbreg with pair-specific and year fixed effects:
[xtnbreg imports LnGDPexp LnGDPimp Lndist LnPOPexp LnPOPimp i.contig i.comlang_off i.col45 i.smctry i.GSPplus FE_year*, fe vce(oim)]
Joao Santos Silva
Many thanks in advance,
Hannes
Related Posts with GRAVITY EQUATION: issues with commands for xtpoisson and xntbreg including FE's
Long to WideHey, I have a long dataset that I want to convert to wide which looks like below. I've been reading…
Calculate gini coefficients for each groups of a datasetHello, I want to calculate ginicoefficients for each group of a dataset. The table shows an example…
Significance at 5% or 10% for a regression outputDear Stata Members I would like to ask a question on interpreting the significance of results based…
Loop to change bunches of variable namesHello Statalist, I have bunches of vairables named like ABC_daily_count_costANDinsulinAN Breitbart_…
Recursive Bivariate probit model(rho & margianl effects)Dear Statalist, I am investigating the impact of a binary endogenous variable 'W(house own(own=1,re…
Subscribe to:
Post Comments (Atom)
0 Response to GRAVITY EQUATION: issues with commands for xtpoisson and xntbreg including FE's
Post a Comment