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
Rolling standard devI have an unbalanced panel dataset with many (15000+) firms and their daily stock returns from 1960-…
Construct matrix counting pairwise agreementsI'm interested in a set of problems in which the data from each individual is a vector of integer-va…
How to create variable of relative change?Dear experts, I have a dataset including monthly observations from June 2017 - June 2019, where I w…
Creating Mills RatiosHi all, This is my first post here so I apologise in advance if I've broken any rules, and I also a…
Dropping all panel observations if any one of them have missing value for any one of the variablesHi there, I have a firm-level data for two years. I want to drop a firm entirely (both years' obser…
Subscribe to:
Post Comments (Atom)
0 Response to marginsplot and legend labels
Post a Comment