Dear Statalist,
My dataset is crossectional, but I want to include industry and year fixed effects. My dependent variable is binary, hence I use a logit model to compute coefficients. However, when I include these fixed effects in the model, I cannot compute the marginal effects anymore. For example, when I only include industry fixed effects, using the following code:
Stata then gives the following statement:
Similarly, when I use the following code:
Stata then gives the following statement:
Am I wrong for including fixed effects using a logit model? If so, what is a good alternative to fixed effects in this setting?
Thank you very much for you answer.
Floris
My dataset is crossectional, but I want to include industry and year fixed effects. My dependent variable is binary, hence I use a logit model to compute coefficients. However, when I include these fixed effects in the model, I cannot compute the marginal effects anymore. For example, when I only include industry fixed effects, using the following code:
Code:
logit DIMPR Eindex _asize _aTobinsQ_W aleverage_W aFCF_W _tsize _relsize_W _tcash_W _tleverage_W allstock percentagecash dealsize2_W industryrelatedness _hightech i.aIndustry48, robust mfx compute
Code:
default predict() is unsuitable for marginal-effect calculation r(119);
Code:
logit DIMPR Eindex _asize _aTobinsQ_W aleverage_W aFCF_W _tsize _relsize_W _tcash_W tleverage_W allstock percentagecash dealsize2_W industryrelatedness _hightech i.aIndustry48, robust margins, dydx(Eindex _asize _aTobinsQ_W aleverage_W aFCF_W _tsize _relsize_W _tcash_W tleverage_W allstock percentagecash dealsize2_W industryrelatedness _hightech) atmeans
Code:
estimates post: matrix has missing values r(504);
Thank you very much for you answer.
Floris