Dear all,
Can any one help me how to add year effects (yes and No) in the output table of stata similar to published articles
I have used the following commands ,but error was getting
Any help is highly appreciated
Can any one help me how to add year effects (yes and No) in the output table of stata similar to published articles
I have used the following commands ,but error was getting
Code:
xtreg assetrisk d_MP CapitalRatio NIM lasset c.C5_Aggregate##i.MPR i.Year,fe vce (robust) note: 2019.Year omitted because of collinearity Fixed-effects (within) regression Number of obs = 201 Group variable: bankname Number of groups = 31 R-sq: Obs per group: within = 0.1785 min = 1 between = 0.0215 avg = 6.5 overall = 0.0517 max = 14 F(19,30) = 3.64 corr(u_i, Xb) = -0.5122 Prob > F = 0.0008 (Std. Err. adjusted for 31 clusters in bankname) ------------------------------------------------------------------------------------ | Robust assetrisk | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------------+---------------------------------------------------------------- d_MP | -.1743155 .1709318 -1.02 0.316 -.5234048 .1747737 CapitalRatio | -.0384784 .0558685 -0.69 0.496 -.1525771 .0756203 NIM | -2.360621 1.825148 -1.29 0.206 -6.08807 1.366827 lasset | -.6394246 .3908451 -1.64 0.112 -1.437637 .1587875 C5_Aggregate | -153.4295 138.9957 -1.10 0.278 -437.2966 130.4376 | MPR | TMP | 13.78409 16.72047 0.82 0.416 -20.36366 47.93185 | MPR#c.C5_Aggregate | TMP | -42.82791 47.5923 -0.90 0.375 -140.0244 54.36853 | Year | 2007 | -6.491238 5.70436 -1.14 0.264 -18.14109 5.158618 2008 | -10.76539 9.901192 -1.09 0.286 -30.98632 9.45554 2009 | -11.46698 10.40783 -1.10 0.279 -32.72261 9.788655 2010 | -12.34658 11.62104 -1.06 0.297 -36.07991 11.38675 2011 | -11.69355 11.03007 -1.06 0.298 -34.21996 10.83286 2012 | -11.21224 10.61015 -1.06 0.299 -32.88106 10.45658 2013 | -14.49289 12.86565 -1.13 0.269 -40.76805 11.78226 2014 | -11.47577 10.48648 -1.09 0.283 -32.89201 9.940476 2015 | -11.99408 10.5234 -1.14 0.263 -33.48573 9.49758 2016 | -10.11857 8.909721 -1.14 0.265 -28.31465 8.077511 2017 | -7.475781 6.384621 -1.17 0.251 -20.51492 5.563355 2018 | -.7794947 2.310377 -0.34 0.738 -5.497915 3.938925 2019 | 0 (omitted) | _cons | 86.1897 72.54137 1.19 0.244 -61.95954 234.3389 -------------------+---------------------------------------------------------------- sigma_u | 4.4049164 sigma_e | 7.4528112 rho | .2588911 (fraction of variance due to u_i) ------------------------------------------------------------------------------------ . estadd local Year "yes" added macro: e(Year) : "yes" . esttab using regin_foreign.csv, label("N" "Year fixed effect" ))se t(2) ar2 sfmt(222)brackets sta > r(* .10 ** .05 *** .01) nogap compress ar2 drop(*year) option label() incorrectly specified r(198);
Any help is highly appreciated
Comment