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
Inquire about "regress is"This is a question from Wooldridge textbook. Using just the years 1990 and 1993, estimate the …
variance ratio test resultArray Hi.I did the variance ratio test after two samples using groups t test and the result is as se…
Panel data of M&A's and patenting activityHello, I have a question that is a bit general, but hopefully somebody can help me since I’m quite …
marginsplot mlabel format valuesDear Statalister, my first post, so forgive me if I get something wrong. My problem is this. By usin…
Combining plots in StataDear all, I wonder if anyone knows how to combine plots in Stata, considering a case when both figur…
Subscribe to:
Post Comments (Atom)
0 Response to xtreg: Panels are not nested within clusters
Post a Comment