Hi,
I need help with logit fixed effects.
I have panel data.
I wish to do firm-year level logit analysis. However, I need to use country*year fixed effect. (The reason is that I have some time-invariant country-level control variables. If I only include country FE, they will drop. Therefore, I use year dummy multiply by country dummy.)
First I tried: xtlogit y x1 x2 i.country#i.year, vce(cluster firm)
Stata runs like 30 mins (but I only have around 2000 obs) and shows:
"calculation of robust standard errors failed"
Then I tried to run the same model without cluster: xtlogit y x1 x2 i.country#i.year
The results shown as: "Random effects logistic regression". Also, the number of observation is only 925 which should be around 2000.
I don't know why here shows random effect. I am actually just add country*year dummy into my logit model.
Second I tried: xi logit y x1 x2 i.country*i.year, vce(cluster firm)
Stata runs forever.... It keeps showing Iteration 1: log pseudolikelihood = -291.60543 (not concave)
I don't know what's going on here... Could you please help me?
Thanks.
Lily
I need help with logit fixed effects.
I have panel data.
Firm | Country | year | Y | X1 | X2 |
1 | US | 2010 | |||
1 | US | 2011 | |||
2 | Japan | 2010 | |||
2 | Japan | 2011 | |||
2 | Japan | 2012 | |||
2 | Japan | 2013 | |||
3 | US | 2008 |
First I tried: xtlogit y x1 x2 i.country#i.year, vce(cluster firm)
Stata runs like 30 mins (but I only have around 2000 obs) and shows:
"calculation of robust standard errors failed"
Then I tried to run the same model without cluster: xtlogit y x1 x2 i.country#i.year
The results shown as: "Random effects logistic regression". Also, the number of observation is only 925 which should be around 2000.
I don't know why here shows random effect. I am actually just add country*year dummy into my logit model.
Second I tried: xi logit y x1 x2 i.country*i.year, vce(cluster firm)
Stata runs forever.... It keeps showing Iteration 1: log pseudolikelihood = -291.60543 (not concave)
I don't know what's going on here... Could you please help me?
Thanks.
Lily
Comment