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
Replace a value of multiple observations for one variableDear all, I have a variable name "village", and wanted to replace the name of village in observation…
How to compare statistical difference between coefficients of two regressionsDear Stata Users, Please, help me with the following. How do I compare statistical difference betw…
Sorting issue when sort is expanded by a variableHello, I have an issue running the following command Code: sort id _mi_m survey expectation gift…
lowess with confidence intervalsDear Stata users, I am wondering is it possible to graph the lowess smoothing function with confide…
Making loops to create 2 groups of variablesHello all, I have data that is set out with columns divided into Sex; then Labour Force Status (8 c…
Subscribe to:
Post Comments (Atom)
0 Response to Not nested Panel data
Post a Comment