Dear Statalist,
Thank you so much for all your previous help in my projects.
I would like to now change the labels of the variables that appear in my regression output.
Particularly, I want to rename T_C "time frame" and return_numb "Return year" in this regression. Specifically, the 2 should say 2021, 3 2020 and so on until 10 -2013.
I tried
but when I reran the regression, I still had T_C and return_numb in the regressions.
Then I tried the method described here https://www.statalist.org/forums/for...abel-vairables but this suggested I rename the variable and this would also mean that in future regressions I need to type action i.Time frame instead of the short, preferred i.T_C as before.
Next, in the data edit mode in Stata, I labeled the variable and also included a label under data, but still without success.
YouTube videos suggested exporting the regressions to Excel or Latex and manually changing the variable names. Since I'm running quite a few regressions I would like to avoid this manual work.
Using https://www.statalist.org/forums/for...lable-from-ssc and SSC's elabel,I tried
but received an error message that says "Time frame" invalid name
r(198);
I would be most grateful for any help or advice.
Kind regards,
Matt
Thank you so much for all your previous help in my projects.
I would like to now change the labels of the variables that appear in my regression output.
Code:
(Std. err. adjusted for 175 clusters in CASE) ------------------------------------------------------------------------------ | Robust action| Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- T_C | 3 years | .0014682 .0586037 0.03 0.980 -.1141975 .1171339 | return_numb | 2 | .0415479 .0820218 0.51 0.613 -.1203379 .2034337 3 | -.0802777 .0850249 -0.94 0.346 -.2480905 .0875352 4 | .0261982 .0848565 0.31 0.758 -.1412823 .1936786 5 | .0324653 .083936 0.39 0.699 -.1331984 .1981291 6 | -.0118075 .0792168 -0.15 0.882 -.1681571 .144542 7 | .018131 .0873436 0.21 0.836 -.1542583 .1905204 8 | -.0442845 .0773675 -0.57 0.568 -.1969842 .1084151 9 | -.0373382 .0917166 -0.41 0.684 -.2183585 .1436821 10 | .1418209 .0865785 1.64 0.103 -.0290584 .3127002 | risk | 2 | .0302998 .0427611 0.71 0.480 -.0540975 .114697 3 | -.0454869 .0468423 -0.97 0.333 -.1379392 .0469654 4 | -.0730557 .0513766 -1.42 0.157 -.1744573 .0283459 | round | 2 | .0446484 .0467053 0.96 0.340 -.0475335 .1368303 3 | .0342588 .0460236 0.74 0.458 -.0565775 .1250951 4 | -.0182757 .0466819 -0.39 0.696 -.1104114 .0738601
I tried
Code:
label variable return_numb "Return year" label variable T_C "Time frame"
Then I tried the method described here https://www.statalist.org/forums/for...abel-vairables but this suggested I rename the variable and this would also mean that in future regressions I need to type action i.Time frame instead of the short, preferred i.T_C as before.
Next, in the data edit mode in Stata, I labeled the variable and also included a label under data, but still without success.
YouTube videos suggested exporting the regressions to Excel or Latex and manually changing the variable names. Since I'm running quite a few regressions I would like to avoid this manual work.
Using https://www.statalist.org/forums/for...lable-from-ssc and SSC's elabel,I tried
Code:
elabel define T_C "Time frame"
r(198);
I would be most grateful for any help or advice.
Kind regards,
Matt
Comment