Dear all,
For my thesis, I have panel data for which I need to estimate a logit model with both industry and year-fixed effects.
My year variable ranges from 2010/2019, and my industry variable is the SIC code (retrieved from Compustat).
I found the code:
areg y i.year, absorb(industry)
which seems suitable for a linear regression (with y being the dependent variable). However, I need to have a logit regression, since my dependent variable is a dummy variable. I already looked on the internet, but I cannot find if this code also holds for a logit regression. Is there anyone who knows how to include both industry and year-fixed effects in a logit model?
Thank you in advance!
For my thesis, I have panel data for which I need to estimate a logit model with both industry and year-fixed effects.
My year variable ranges from 2010/2019, and my industry variable is the SIC code (retrieved from Compustat).
I found the code:
areg y i.year, absorb(industry)
which seems suitable for a linear regression (with y being the dependent variable). However, I need to have a logit regression, since my dependent variable is a dummy variable. I already looked on the internet, but I cannot find if this code also holds for a logit regression. Is there anyone who knows how to include both industry and year-fixed effects in a logit model?
Thank you in advance!
Comment