Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Getting at value labels


From   "Danielle H. Ferry" <[email protected]>
To   [email protected]
Subject   st: Getting at value labels
Date   Thu, 12 Feb 2004 13:38:01 -0500

Hi all,

I would like to make Stata use the value labels for my variable <marEduc> as the descriptive text in the legend for a scatterplot. See below - right now, I have specified the descriptive text specifically. Is there a way to get Stata to do this automatically?

twoway (connected aRate year if marEduc==1)
(connected aRate year if marEduc==2)
(connected aRate year if marEduc==3)
(connected aRate year if marEduc==4)
(connected aRate year if marEduc==5)
(connected aRate year if marEduc==6),
legend(label(1 "Unmarried/<12 yrs")
label(2 "Unmarried/12 yrs")
label(3 "Unmarried/13+ yrs")
label(4 "Married/<12 yrs")
label(5 "Married/12 yrs")
label(6 "Marred/13+ yrs")) ;

Thanks.

Danielle Ferry

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index