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
How to create a variable representing the max length of consecutively same numbers in a row?I am trying to find a way to caculate the max length of consectively same numbers in each row . For …
Change last 4 digits in String type How can I change last 4 digits of co_end_variable to finyear ? For the data below, for example, 01…
In a loop, strtrim() won't work in some of my variablesHello everyone! I'm facing a little difficulty using the strtrim() command here. As always, I looked…
How can I multiply two category variables by another category variable to create a new variable? Hi All, I want to create a new variable which is (Age * Education levels). But the problem is that…
Mismathing data when summarizing a variableWhen I try to summarize data the information that the functio returns to me doesn't match with what …
Subscribe to:
Post Comments (Atom)
0 Response to xtreg: Panels are not nested within clusters
Post a Comment