Hey guys,
I am using Compustat data to run a Panel data Logit regression with industry fixed effects. To set panel data I used:
xtset gvkey year
I would like to estimate a Logit model with industry fixed effects. Therefore, I created industry which takes values from 1 to 10 representing 10 different industries (based on Compustat's SIC Codes). The code I used for my regression is:
xtlogit liabilities size value i.industry, fe
Stata revealed:
note: 1.industry omitted because of no within-group variance.
note: 2.industry omitted because of no within-group variance.
note: 3.industry omitted because of no within-group variance.
note: 4.industry omitted because of no within-group variance.
note: 5.industry omitted because of no within-group variance.
note: 6.industry omitted because of no within-group variance.
note: 7.industry omitted because of no within-group variance.
note: 8.industry omitted because of no within-group variance.
note: 9.industry omitted because of no within-group variance.
note: 10.industry omitted because of no within-group variance.
So I tried:
xtlogit liabilities size value, i(industry) fe
This time Stata revealed:
warning: existing panel variable is not industry
Does anyone have a suggestion/idea how to implement the Industry Fixed Effects Panel-Data Logit regression?
If my information is not sufficient, please feel free to ask.
Thanks.
Regards,
Benny
I am using Compustat data to run a Panel data Logit regression with industry fixed effects. To set panel data I used:
xtset gvkey year
I would like to estimate a Logit model with industry fixed effects. Therefore, I created industry which takes values from 1 to 10 representing 10 different industries (based on Compustat's SIC Codes). The code I used for my regression is:
xtlogit liabilities size value i.industry, fe
Stata revealed:
note: 1.industry omitted because of no within-group variance.
note: 2.industry omitted because of no within-group variance.
note: 3.industry omitted because of no within-group variance.
note: 4.industry omitted because of no within-group variance.
note: 5.industry omitted because of no within-group variance.
note: 6.industry omitted because of no within-group variance.
note: 7.industry omitted because of no within-group variance.
note: 8.industry omitted because of no within-group variance.
note: 9.industry omitted because of no within-group variance.
note: 10.industry omitted because of no within-group variance.
So I tried:
xtlogit liabilities size value, i(industry) fe
This time Stata revealed:
warning: existing panel variable is not industry
Does anyone have a suggestion/idea how to implement the Industry Fixed Effects Panel-Data Logit regression?
If my information is not sufficient, please feel free to ask.
Thanks.
Regards,
Benny
Comment