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
Principal factor (factor, pf): What if the proportion of variance accounted for by the factors is greater than 1.00 (greater than 100%)?Hello, I ran factor analysis(factor, pf) in Stata to develop factor scores for my latent variables. …
Principal component analysis for alternative proxiesI have a panel data. There are three alternative proxies (i.e. IndVar1, IndVar2, IndVar3) that basic…
Correct estimation of panel dataHello, I am making model to analyze migration from third countries (together 20) to Slovakia, Hunga…
Weighted database regression analysesDear Stata List, I'm having trouble completing a weighted linear regression model using NHANES data…
Help with re-formatting a dataset for choice modelling?Hi folks. I have data in the following format. Each observation represents a zip code, n_sites denot…
Subscribe to:
Post Comments (Atom)
0 Response to xtreg: Panels are not nested within clusters
Post a Comment