Dear Statalisters,
Hello.
I am relatively new to Stata and I am stuck with a small technical problem when creating a graph with marginsplot.
I am plotting my coefficients on a graph as follows;
The output graph for the above code is attached.
What I want to do is to change the variables names of x1~x9 on the y-axis.
I know I can do this manually, but since I will make many graphs and combine them afterwards, I really hope someone can help me to write a code that will do this.
I cannot change the names of the variables in the actual dataset because I want to rename the variables into Japanese.
Hello.
I am relatively new to Stata and I am stuck with a small technical problem when creating a graph with marginsplot.
I am plotting my coefficients on a graph as follows;
Code:
*Model1 quietly xtreg x1 x2 x3 x4 x5 x6 x7 x8 x9 x9, fe quietly margins, dydx(*) marginsplot, horizontal xline(0) yscale(reverse) recast(scatter) level(90)
What I want to do is to change the variables names of x1~x9 on the y-axis.
I know I can do this manually, but since I will make many graphs and combine them afterwards, I really hope someone can help me to write a code that will do this.
I cannot change the names of the variables in the actual dataset because I want to rename the variables into Japanese.
Comment