Hello everyone ,
I am estimating gravity model with 3-dimensional panel data set (exporter, importer and year), including 24 countries and 18 years (2000-2017), so there are 24x23x18=9936 observations. I have created some fixed effects as follow:
For time fixed effect: tab year, gen(time_fixed)
For exporter fixed effect: tab Exporter, gen(exp_fixed)
For importer fixed effect: tab Importer, gen(imp_fixed)
For pair fixed effect:
egen pair_id = group(Exporter Importer)
tab pair_id, gen(pair_id_fixed)
My questions are:
1. if I want to run pooled OLS, should I use
reg Y X1 X2 X3
or
tsset pair_id year
xtreg Y X1 X2 X3
2. if I want to add only time fixed effect, should I use
reg Y X1 X2 X3 time_fixed*
or
tsset pair_id year
xtreg Y X1 X2 X3 time_fixed*
3. if I want to include time fixed effect, exporter fixed effect, importer fixed effect and pair fixed effect, should I use
reg Y X1 X2 X3 time_fixed* exp_fixed* imp_fixed* pair_id_fixed*
or
tsset pair_id year
xtreg Y X1 X2 X3 time_fixed* exp_fixed* imp_fixed*, fe
Thank you very much for your kind attention
Related Posts with Gravity model estimation
analysis on two-eye datasetHello, I am trying to compare the intraocular pressure (IOP, a continuous variable) between two trea…
How to introduce initial values in CMP for 4 eq. TobitsHi, I am estimating a model with 4 equations, each of them Tobit for a Time Use Survey (US edition).…
Intraclass correlations with meologit?Hi all, I'm revisiting my analysis for a revise & resubmit article but I'm having trouble repli…
Consolidating two column variablesI have two column variables j8 and j9 and they complement each other. j8 is asking if they plan and …
Export data in histogramI am new to stata (I am using version Stata/IC 12.1 for Mac, 64-bit Intel) and succeeded in producin…
Subscribe to:
Post Comments (Atom)
0 Response to Gravity model estimation
Post a Comment