I use the package coefplot
in Stata to calculate how the coefficient changes depending on the model used. In particular, I want to see how the percentage ratio changes over time. I draw it vertically, so the x axis can show the year to which each coefficient relates. However, I cannot properly designate the X axis (instead of showing the name of the variable x1
that interests me , it should indicate 1, 2, and 3. I would also like to omit the legend using option legend(off)
, but this does not work.
This is the code I'm using:
reg y x1 x2 if year==1;
estimates store t1;
reg y x1 x2 if year==2;
estimates store t2;
reg y x1 x2 if year==3;
estimates store t3;
coefplot t1 t2 t3, drop(x2) vertical yline(0);
Any suggestion would be greatly appreciated.
source
share