Hello,
I'm attempting to graph a margins plot, but my legend labels command doesn't change the labels to what I'm specifying. Here is my code:
quietly margins, at(yrsbcs=(-2(2)10) cfarmsx = (-6, 0, 2))
marginsplot, noci scheme(sj) ytitle("Predicted chronic absence") xtitle("Years of Implementation") /*
*/legend(label(1 "lowest poverty") label(2 "Mean poverty") label(3 "Highest poverty"))
The legend for cfarmsx that appears still has the 3 values labeled as cfarmsx=6, cfarmsx=0, instead of "lowest poverty", "mean poverty", etc.
I also tried specifying labels for the values of -6, 0 and 2, but that doesn't work either. Any ideas how to give the legend the right labeling?
Thanks in advance!
Jane
Related Posts with marginsplot and legend labels
missing standard error of coefficientHi everyone! I have a data set that I enclosed here. My dependent variable is tariff. The variable …
A really basic thing for <= and <, why returning the same result?Hi! I have a really basic question here, it's so strange, can someone help to identify where the pro…
How to adjust response rates in repeated cross-sectonal studies?Hello, I am investigating changes in lifestyle during adolescence. Use a dataset that combines mult…
How can I combine many data sets into one having a common variable in each one?Hi all, I 'm dealing with panel data (monthly based) , having 7 different data sets it's difficult …
graph bar: sorting in case of displaying several variablesI would like to illustrate the responses of a survey question that allowed for choosing multiple res…
Subscribe to:
Post Comments (Atom)
0 Response to marginsplot and legend labels
Post a Comment