I am using an unbalanced firm-level panel data. I am regressing the market share of the firms on a set of independent variables that account for the firm characteristics.
I am running a fixed-effect model. My panel variable is the firm id.
I would like to cluster my error by sector to get rid of any serial correlation between firms in the same sector.
I am using this command
xtreg lshare ltariff ltfp lwages lage trade, fe vce (cluster sector)
However, I got this error "panels are not nested within clusters".
What should I do to correct for this?
Thanks in advance.
Related Posts with Not nested Panel data
Fama Macbeth cross sectional regressionHello, I want to run Fama Macbeth cross sectional regression of monthly excess return of 500 securit…
Storing loop regression outputsHello everyone, I'm trying to run the below loop and store the estimates of each regression model; …
Difference in Difference (DiD) within GMMHello everyone, I am trying to work out how to complete a DiD (difference in difference) analysis w…
Logit / probit regression with binary endogenous explanatory variableDear all, I am currently facing an issue with regard to binary endogenous explanatory variables in p…
SignificanceHi guys. For my research (Master Thesis) I have two control variables on segments: one for the numb…
Subscribe to:
Post Comments (Atom)
0 Response to Not nested Panel data
Post a Comment