Dear all,
I am running a structural gravity estimation over ISIC 2-digit trade flows during 1998-2014. To control for multilateral resistances I include importer-sector-time, exporter-sector-time, and bilateral-sector effects (the latter is the panel id). Stata issues the error message r(908); although my matsize is 11000 and emptycells drop is on.
Now instead I want to find a way to run multi-way fixed effects regression, by demeaning the variables in my unbalanced panel data set. Of course, the demeaning procedure could give the same point estimates as Stata built-in xtreg does if the panel dataset is strongly balanced (e.g. in a one-way fixed effect). Exact point estimates could be also obtained in two-way or other multi-way fixed effects by including the fixed effect dummies only when the panel is a balanced data. The problem I have is that my dataset is very large with 1.7 million observations and with more than 32000 fixed effects.
I would like to ask if there is any procedure that I can produce equivalent point estimates with my unbalanced panel data via the demeaning procedure. Of course, if there is any other possibility that could help me run ppml or normal OLS with large number of fixed effects, I will be grateful to hear.
Thanks in advance,
Mahdi
I am running a structural gravity estimation over ISIC 2-digit trade flows during 1998-2014. To control for multilateral resistances I include importer-sector-time, exporter-sector-time, and bilateral-sector effects (the latter is the panel id). Stata issues the error message r(908); although my matsize is 11000 and emptycells drop is on.
Now instead I want to find a way to run multi-way fixed effects regression, by demeaning the variables in my unbalanced panel data set. Of course, the demeaning procedure could give the same point estimates as Stata built-in xtreg does if the panel dataset is strongly balanced (e.g. in a one-way fixed effect). Exact point estimates could be also obtained in two-way or other multi-way fixed effects by including the fixed effect dummies only when the panel is a balanced data. The problem I have is that my dataset is very large with 1.7 million observations and with more than 32000 fixed effects.
I would like to ask if there is any procedure that I can produce equivalent point estimates with my unbalanced panel data via the demeaning procedure. Of course, if there is any other possibility that could help me run ppml or normal OLS with large number of fixed effects, I will be grateful to hear.
Thanks in advance,
Mahdi
Comment