Dear Statalist,
For my thesis I try to examine the effect when a firm generates more renewable energy on its cost of capital. In this I want to see what the difference in effects are in the period 2002-2010 and 2011-2018, and I have made interaction terms of my variable with a dummy that is 1 for period 1 (2002-2010) and a dummy that is 1 for period 2 (2011-2018). My question is regarding how I need to regress this, because I thought that I could do this in one model or in 2 where every time period is regressed separately, but the outcomes differ wildly. My supervisor told me the results should be the same but this isn't the case.
My sample consists of 140 firms and 17 years (2002-2018) and is unbalanced. I use Stata 15.1 MP.
The first method I tried was:
xtreg beta re_genperiod1 re_genperiod2 firmsizeperiod1 firmsizeperiod2, fe robust
The second method was:
xtreg beta re_genperiod1 firmsizeperiod1, fe robust
and:
xtreg beta re_genperiod2 firmsizeperiod2, fe robust
The third is:
xtreg betaperiod1 re_genperiod1 firmsizeperiod1, fe robust
and:
xtreg betaperiod2 re_genperiod2 firmsizeperiod2, fe robust
the outcomes differ widly from p-values of 0.00 to that of 0.413, etc.
Can someone explain why his is and which model is the correct one?
Thank you very much!
Julian
Related Posts with Fixed-effect model: how to regress with 2 sample periods
Generate mean within group for those whose value is lower onlyHi everybody, I have data where each row represents one individual in a given year, working in a giv…
How to create a graph from mixed effect linear coefficientDear Statalisters, I am using a mixed-effect linear model and I want to plot the coefficient of the…
how to fix heteroskedasticity, autocorrelation in stata 14.2I am working for my thesis with panel data where N> T (N~700, T=4 as the attached file ). I carri…
Keeping the last 4 digits of a long variableHi everyone, I have a long variable for source date in this dataset I am working with. This long v…
How to create a unique indiviudal id in household data?Dear all, I'm using a household data in which an individual is uniquely identified by province_dist…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed-effect model: how to regress with 2 sample periods
Post a Comment