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
How to generate a single time variable for survey respondents in different time zones?Greetings, I'm running Stata 15 on a Mac OS. I recently conducted a survey across a period of a cou…
Specific Help in Merging my Two DatasetsHello Generous people on this Forum, I am trying to merge these two databases found herehttps://dri…
What is the c.operator in reg and set emptycells ?Today when I run this regression Code: did2s l_homicide [aweight=popwt], first_stage(i.sid i.year)…
Re: Converting a string variable to a date variableHello, My date variable (moyr) could not be used when I declared my dataset to be monthly panel dat…
Fixed effectsDear forum, I have a urgent question. I am writing my thesis about cross-border M&A. Hence, I u…
Subscribe to:
Post Comments (Atom)
0 Response to Not nested Panel data
Post a Comment