Hello to all! I am facing the following problems with my panel data analysis:
(1) I would like to create subgroups (currently two) in terms of age and check their interaction effects with another financial variable. For this purpose, I have created another age group variable via the recode command, which takes either the value 1 (first group) or 2 (second group), i.e. over and under 50 years. I would like to examine a similar interaction effect for years of service. However, when I run a simple regression, Stata does not show me a split for the subgroups. What can I do in this case to get usable results for both age categories?
(2) Regarding the choice of fixed effects, random effects, or pooled effects model: Am I right in assuming that because I do not have an identical sample in each year due to missing data, a pooled ols tends to be more appropriate here?
I have attached an excerpt from Stata and my data below. I appreciate any help!
(1) I would like to create subgroups (currently two) in terms of age and check their interaction effects with another financial variable. For this purpose, I have created another age group variable via the recode command, which takes either the value 1 (first group) or 2 (second group), i.e. over and under 50 years. I would like to examine a similar interaction effect for years of service. However, when I run a simple regression, Stata does not show me a split for the subgroups. What can I do in this case to get usable results for both age categories?
(2) Regarding the choice of fixed effects, random effects, or pooled effects model: Am I right in assuming that because I do not have an identical sample in each year due to missing data, a pooled ols tends to be more appropriate here?
I have attached an excerpt from Stata and my data below. I appreciate any help!
Code:
recode ceo_age (min/50 = 1) (51/max = 2), gen(age_gp) tab age_gp recode ceo_tenure (min/3 = 1) (4/max = 2), gen(tenure_gp) tab tenure_gp
Code:
reg esg_score c.curetr c.curetr#age_gp intan lev pb_ratio capint roa size salary_gap board ceo_duality gender ceo_ten
> ure i.year i.siccode, vce(r)
Linear regression Number of obs = 851
F(23, 827) = 40.34
Prob > F = 0.0000
R-squared = 0.4384
Root MSE = 13.398
---------------------------------------------------------------------------------
| Robust
esg_score | Coef. Std. Err. t P>|t| [95% Conf. Interval]
----------------+----------------------------------------------------------------
curetr | -4.400755 4.050604 -1.09 0.278 -12.35143 3.549919
|
age_gp#c.curetr |
2 | 8.772016 3.238446 2.71 0.007 2.415475 15.12856
|
intan | -1.705206 5.018897 -0.34 0.734 -11.55648 8.146067
lev | 6.247028 4.405853 1.42 0.157 -2.400942 14.895
pb_ratio | -.0245294 .0786188 -0.31 0.755 -.1788453 .1297865
capint | 10.9656 4.537595 2.42 0.016 2.059042 19.87216
roa | 24.8038 9.31881 2.66 0.008 6.5125 43.0951
size | 6.171308 .3896329 15.84 0.000 5.406522 6.936094
salary_gap | .0251233 .0051702 4.86 0.000 .0149751 .0352715
board | -.2755872 1.125644 -0.24 0.807 -2.485042 1.933868
ceo_duality | 3.043209 .9938728 3.06 0.002 1.092399 4.994019
gender | 5.177933 1.81803 2.85 0.005 1.609437 8.746429
ceo_tenure | -.3893942 .0771052 -5.05 0.000 -.5407391 -.2380492
|
year |
2016 | .6911621 1.603866 0.43 0.667 -2.456966 3.83929
2017 | 1.324798 1.60296 0.83 0.409 -1.821551 4.471147
2018 | 3.527925 1.531031 2.30 0.021 .5227619 6.533089
2019 | 4.524673 1.533702 2.95 0.003 1.514266 7.535079
|
siccode |
3 | 5.422113 2.910965 1.86 0.063 -.2916361 11.13586
4 | 6.625767 2.34169 2.83 0.005 2.029411 11.22212
5 | .3659336 2.602472 0.14 0.888 -4.742294 5.474161
6 | .1884965 3.168794 0.06 0.953 -6.031329 6.408322
7 | 2.610705 2.43528 1.07 0.284 -2.169353 7.390762
8 | -.3438315 2.934011 -0.12 0.907 -6.102815 5.415152
|
_cons | -45.3922 7.452458 -6.09 0.000 -60.02015 -30.76424
---------------------------------------------------------------------------------
Code:
. vif
Variable | VIF 1/VIF
-------------+----------------------
curetr | 1.98 0.503872
age_gp#|
c.curetr |
2 | 2.04 0.490632
intan | 1.54 0.650179
lev | 1.47 0.679840
pb_ratio | 1.62 0.618631
capint | 1.82 0.549529
roa | 2.09 0.478770
size | 1.60 0.623381
salary_gap | 1.28 0.779262
board | 1.33 0.750410
ceo_duality | 1.28 0.780442
gender | 1.10 0.906361
ceo_tenure | 1.17 0.858357
year |
2016 | 1.71 0.585061
2017 | 1.81 0.553982
2018 | 1.86 0.538775
2019 | 1.88 0.533250
siccode |
3 | 2.12 0.471907
4 | 7.74 0.129244
5 | 3.66 0.273140
6 | 2.11 0.474175
7 | 3.30 0.302896
8 | 6.44 0.155248
-------------+----------------------
Mean VIF | 2.30
.

Comment