Hi, Stata forum,
I am running firm level regression using one country panel data.
For firm:
xtset id year
xtreg dep indep1 indep2, fe cluster(id)
Then, I also wanted to try industry-year fixed effect.
So i create new var:
egen industry_year = group (industry year)
then,
xtset industry_year
xtreg dep indep1 indep2, fe cluster(industry_yea)
And i get the error "xtreg: Panels are not nested within clusters".
Could you please explain me or recommend me what I can do? I am very confused of the economic meaning of this fixed effect and how to use it
Thank you very much!
Related Posts with xtreg: Panels are not nested within clusters
Using robust standard errors or clustered standard errors in iv estimation (ivreg2) Hello guys, I have the following problem and I would appreciate any help: So Im analyzing the rel…
DeletedDeleted …
Beginner User: invalid variable r(198)Hi All- Each time I run the code below, I receive an invalid 'data' r(198) response from STATA. I a…
Combining two summary tables and computing difference-in-meansI have two samples with the same variables. I would like to create a combined summary table and comp…
Random tiebreaking with –sort–With –sort– I'm aware that unless the –stable– option is specified that ties among the sort varlist …
Subscribe to:
Post Comments (Atom)
0 Response to xtreg: Panels are not nested within clusters
Post a Comment