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
Random effects Fractional Regression ModelHello everyone! I am planning to run a fractional regression model in the context of panel data . As…
Help Interpreting a log-log scale scatter plotDear all, I am using Stata 16, on mac. I used the command twoway scatter lnGDP lnpopulation. GDP i…
How to use Mata for calculations within a Stata ML evaluator program?[This is picking up on the thread I began here: https://www.statalist.org/forums/for...normal-densit…
Copy database only with variable codes into ExcelI need to copy and paste database only with variable codes into Excel from STATA. How to do it? Plea…
cmxtmixlogit: real life data & applications?Hi Statalist -cmxtmixlogit- was newly introduced in Stata 16 to enable choice modelling for panel d…
Subscribe to:
Post Comments (Atom)
0 Response to Not nested Panel data
Post a Comment