Hey Statas,
i have trouble understanding why you should use year dummies in a fixed-effect regression when i already declared the timevariable in xtset.
When i use xtset i declare company (Unt_id) and year as panel data. When I declare the timevariable already there, why should i include year dummies in my regression again?
My results from regression with year dummies differ from the results i get from the regression without year dummies.
Should I use the one with the higher R^2?
Thanks in advance!
i have trouble understanding why you should use year dummies in a fixed-effect regression when i already declared the timevariable in xtset.
When i use xtset i declare company (Unt_id) and year as panel data. When I declare the timevariable already there, why should i include year dummies in my regression again?
My results from regression with year dummies differ from the results i get from the regression without year dummies.
Should I use the one with the higher R^2?
Thanks in advance!
Code:
xtreg ESGScore AR V FQ_V FQ_AR ANQ IndependentMembers VG CSRCommittee logTotalRevenue, fe vce(cluster Unt_id) Fixed-effects (within) regression Number of obs = 518 Group variable: Unt_id Number of groups = 128 R-squared: Obs per group: Within = 0.3501 min = 1 Between = 0.5492 avg = 4.0 Overall = 0.5204 max = 5 F(9,127) = 14.56 corr(u_i, Xb) = -0.4480 Prob > F = 0.0000 (Std. err. adjusted for 128 clusters in Unt_id) ------------------------------------------------------------------------------------ | Robust ESGScore | Coefficient std. err. t P>|t| [95% conf. interval] -------------------+---------------------------------------------------------------- AR | .4419116 .3132781 1.41 0.161 -.1780093 1.061832 V | .5223736 .4697566 1.11 0.268 -.40719 1.451937 FQ_V | 4.000499 3.999181 1.00 0.319 -3.913158 11.91416 FQ_AR | 23.9788 5.367196 4.47 0.000 13.35809 34.59952 ANQ | 7.998329 9.642444 0.83 0.408 -11.08233 27.07899 IndependentMembers | .1809809 .0402595 4.50 0.000 .1013146 .2606473 VG | .2437537 .2735775 0.89 0.375 -.2976069 .7851142 CSRCommittee | 8.454832 1.919122 4.41 0.000 4.657236 12.25243 logTotalRevenue | 16.13881 4.720446 3.42 0.001 6.797899 25.47972 _cons | -129.1692 44.74514 -2.89 0.005 -217.7118 -40.62666 -------------------+---------------------------------------------------------------- sigma_u | 14.130315 sigma_e | 6.127202 rho | .84173156 (fraction of variance due to u_i) ------------------------------------------------------------------------------------ . . . xtreg ESGScore AR V FQ_V FQ_AR ANQ IndependentMembers VG CSRCommittee logTotalRevenue i.year, fe vce(cluster Unt_id) Fixed-effects (within) regression Number of obs = 518 Group variable: Unt_id Number of groups = 128 R-squared: Obs per group: Within = 0.5170 min = 1 Between = 0.4853 avg = 4.0 Overall = 0.4958 max = 5 F(13,127) = 28.34 corr(u_i, Xb) = 0.0412 Prob > F = 0.0000 (Std. err. adjusted for 128 clusters in Unt_id) ------------------------------------------------------------------------------------ | Robust ESGScore | Coefficient std. err. t P>|t| [95% conf. interval] -------------------+---------------------------------------------------------------- AR | .2745461 .2723805 1.01 0.315 -.2644458 .813538 V | .4833979 .355234 1.36 0.176 -.219546 1.186342 FQ_V | -1.281977 3.38248 -0.38 0.705 -7.975294 5.41134 FQ_AR | .9844655 5.182062 0.19 0.850 -9.269899 11.23883 ANQ | 13.28432 4.669543 2.84 0.005 4.044135 22.5245 IndependentMembers | .1150257 .032074 3.59 0.000 .051557 .1784944 VG | -.6194623 .4177155 -1.48 0.141 -1.446046 .2071214 CSRCommittee | 5.000126 1.67506 2.99 0.003 1.685485 8.314767 logTotalRevenue | 10.1636 3.853459 2.64 0.009 2.538296 17.7889 | year | 2017 | 2.130767 .819544 2.60 0.010 .5090374 3.752497 2018 | 4.4858 1.104202 4.06 0.000 2.300782 6.670817 2019 | 6.940105 1.266919 5.48 0.000 4.4331 9.44711 2020 | 10.78061 1.515915 7.11 0.000 7.78089 13.78033 | _cons | -62.66249 36.08125 -1.74 0.085 -134.0608 8.735795 -------------------+---------------------------------------------------------------- sigma_u | 13.417675 sigma_e | 5.3102312 rho | .86458142 (fraction of variance due to u_i) ------------------------------------------------------------------------------------
Comment