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
Multiple imputation for correlated exposure variablesHello. I am trying to perform multiple imputation in my dataset using mi impute chained. The dataset…
question about xtabond2 outputI am running the below syntax Code: xtabond2 generalcrime l.generalcrime proactivity feb mar apr…
Replace value in many observations and variablesDear all I have a database of around 50 variables and 200 observations. I would like to replace with…
Table 1 help or test for significant differenceHello I have a data set in which I am trying to compare longitudinal data from successive pregnancie…
Panel Data Analysis (Run desired regression)Dear Specialist First Thanks for your reading. I have a Panel Data set. I treated Region as id var…
Subscribe to:
Post Comments (Atom)
0 Response to Not nested Panel data
Post a Comment