Dear Community,
I am currently writing my master thesis on the effect of a company's CO2 emissions on its stock returns. I am using data from MSCI World companies between 2010-2019.
My dependent variable is: wreturn
My independent variable is: logco2total
My control variables are: logssize roe capexassets logppe leverage BM EPS logsales
Hausman test shows that I should use fixed effects and Pooled OLS shows that year, industry affiliation and the country of a company have a significant effect on the dependent variable. So I should / would like to control for year, industry and country-fixed effects in my regression. However, it is not possible to control for industry and country in fixed effects models because they are time invariant. Therefore I decided to use the Correlated Random Effects (CRE) Model.
For this, I determined the mean values for the time variant variables (except the dependent variable) as follows:
. egen mlogco2total = mean(logco2total), by(id)
(1 missing value generated)
. egen mlogssize = mean(logssize), by(id)
(1 missing value generated)
. egen mroe = mean(roe), by(id)
(1 missing value generated)
. egen mcapexassets = mean(capexassets), by(id)
(1 missing value generated)
. egen mlogppe = mean(logppe), by(id)
(1 missing value generated)
. egen mleverage = mean(leverage), by(id)
(1 missing value generated)
. egen mBM = mean(BM), by(id)
(1 missing value generated)
. egen mEPS = mean(EPS), by(id)
(1 missing value generated)
. egen mlogsales = mean(logsales), by(id)
(1 missing value generated)
and calculated CRE as follows:
xtreg wreturn logco2total logssize roe capexassets logppe leverage BM EPS logsales mlogco2total mlogssize mroe mcapexassets mlogppe mleverage mBM mEPS mlogsales i.industry i.year i.country, i(id) re
Is this correct? I did not calculate and considered the mean of "year". Is that okay?
I would really appreciate the answer of some experienced people since I am a Stata beginner!
Best
Onur
I am currently writing my master thesis on the effect of a company's CO2 emissions on its stock returns. I am using data from MSCI World companies between 2010-2019.
My dependent variable is: wreturn
My independent variable is: logco2total
My control variables are: logssize roe capexassets logppe leverage BM EPS logsales
Hausman test shows that I should use fixed effects and Pooled OLS shows that year, industry affiliation and the country of a company have a significant effect on the dependent variable. So I should / would like to control for year, industry and country-fixed effects in my regression. However, it is not possible to control for industry and country in fixed effects models because they are time invariant. Therefore I decided to use the Correlated Random Effects (CRE) Model.
For this, I determined the mean values for the time variant variables (except the dependent variable) as follows:
. egen mlogco2total = mean(logco2total), by(id)
(1 missing value generated)
. egen mlogssize = mean(logssize), by(id)
(1 missing value generated)
. egen mroe = mean(roe), by(id)
(1 missing value generated)
. egen mcapexassets = mean(capexassets), by(id)
(1 missing value generated)
. egen mlogppe = mean(logppe), by(id)
(1 missing value generated)
. egen mleverage = mean(leverage), by(id)
(1 missing value generated)
. egen mBM = mean(BM), by(id)
(1 missing value generated)
. egen mEPS = mean(EPS), by(id)
(1 missing value generated)
. egen mlogsales = mean(logsales), by(id)
(1 missing value generated)
and calculated CRE as follows:
xtreg wreturn logco2total logssize roe capexassets logppe leverage BM EPS logsales mlogco2total mlogssize mroe mcapexassets mlogppe mleverage mBM mEPS mlogsales i.industry i.year i.country, i(id) re
Is this correct? I did not calculate and considered the mean of "year". Is that okay?
I would really appreciate the answer of some experienced people since I am a Stata beginner!

Best
Onur
Comment