Hi,
I am new with STATA and I would like some advice for the following problem: I am dealing with panel count data model.My dependent variable is a count and is the number(count) of investment projects in each host country(i), in each sector (j) in a given year(t). My data is panel data from 2003 to 2016 and I have 12 industries and 105 host nations. My two main explanatory variables vary by industry by time(ij)and by country, industry, time(ijt).Control variables are composed of i and t. Therefore,
I am dealing with three-dimensional panel data analysis:
i= country, 105
j= industry, 12
t =year, 14
I am using xtpoisson with fe approach with robust standard errors.
After reading a lot of STATAlist previous posts I realized that in order to xtset my data I need to combine countries*industries fixed effect:
egen panelid= group (country * industries)
xtset panelid Year
xtset Y X i.Year, robust i(panelid) fe
However, because I have a lot of countries (105) and a lot of zeros on my dependent variable an important downfall of this estimation is the loss of degrees of freedom because of the inclusion of all these dummy variables. Instead of interacting countries* industries and because I don’t want to combine the country and industry FE, I also tried to put them separately on the model:
For a model with industry FE:
Xtset Industry
Xtpoisson Y X i. Year i.country, fe
Xtpoisson Y X. i.Year i.region, fe
I also incorporate regional dummies in order to group my 105 countries and I incorporated in the model:
Xtpoisson Y X. i.Year i.region, fe
My question is that is there any other way to model a three dimensional panel data without combining industries and countries which generates so many dummies? At the same time when I am grouping industries & countries does not allow me to have a separate information about industries or countries.
I found this older post that was helpful on my decision.
https://www.statalist.org/forums/for...ata-regression
Any suggestions or advice will be greatly appreciated.
Thank you very much,
Related Posts with Issue with three-dimensional panel data analysis
power analysis with clustered data - simulated vs calculatedI want to estimate my statistical power for two groups with clustered data. When I use the power com…
Stata Runs .Do File without errors to plot graph but nothing happensI've run into a problem after working with a .do file and dataset to draw a series of graphs, prior …
How to generate the lagged month local?I'm working with the data sets which are 1 month lag. For example, it's now May, but today the data …
Creating all possible firmpairs within each industryDear Statalist, The following shows a snippet of the dataset used: HTML Code: compid compname …
Conditional logit model when there are multiple choices and independent variable only varies across choicesHi, I have a dataset with COVID-19 mortality rates categorized by occupation and industry, consisti…
Subscribe to:
Post Comments (Atom)
0 Response to Issue with three-dimensional panel data analysis
Post a Comment