Dear all,
I am running difference in difference regressions in a panel data set over the years 2004-2010, leaving out 2007.
I am testing whether some politically 'connected' firms alter their behavior after a political event 'post'.
Hereby, I am using an interaction term -post##conn-
Of 78 firms I have data points for leverage, size, capex spending etc for the end of the year 2004, 2005, 2006, 2008, 2009 en 2010.
First (and for example), I am looking at leverage, using this formula including the following independent variables as controls: size, top30 firms in country-dummy , log(profitability), log(cash/assets), log(capex/assets), fixed industry effects, fixed year effects and standard errors clustered per firmid. As you can see, most are lagged 1 year.
The thing is now, that when wanting to test for outliers, many people on Statlist refer to -mmregress- as the best option.
However, when using -mmregress- it is not possible to use an interaction term like -post##conn-
I have tried to read all the threads and the Stata Journal, but the answer for a random effects model like this seems not there
Is there somebody who can help me with this? Or knows another way to correctly do this? I would like to note again, not a fixed effects model or an OLS (Hausman and Breusch Pagan drove me in this direction)
Thank you so much!!
I am running difference in difference regressions in a panel data set over the years 2004-2010, leaving out 2007.
I am testing whether some politically 'connected' firms alter their behavior after a political event 'post'.
Hereby, I am using an interaction term -post##conn-
Of 78 firms I have data points for leverage, size, capex spending etc for the end of the year 2004, 2005, 2006, 2008, 2009 en 2010.
First (and for example), I am looking at leverage, using this formula including the following independent variables as controls: size, top30 firms in country-dummy , log(profitability), log(cash/assets), log(capex/assets), fixed industry effects, fixed year effects and standard errors clustered per firmid. As you can see, most are lagged 1 year.
Code:
xtreg lev post##conn size_lag1 top_lag1 prof_lag1 lca_lag1 lcapex_lag1 i.sic2 i.year, re cluster(id)
However, when using -mmregress- it is not possible to use an interaction term like -post##conn-
I have tried to read all the threads and the Stata Journal, but the answer for a random effects model like this seems not there

Is there somebody who can help me with this? Or knows another way to correctly do this? I would like to note again, not a fixed effects model or an OLS (Hausman and Breusch Pagan drove me in this direction)
Thank you so much!!
Comment