Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: how to display value label


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: how to display value label
Date   Tue, 18 Aug 2009 22:01:12 +0200

<> 

Upon further consideration :-)


*************
sysuse auto, clear
forv i =0/1{
tw (sc pr weight) if foreign==`i', title("Group is `: label  `:value label
foreign' `i''") name(file`i', replace)
}
graph combine file0 file1
*************

Probably closer to your intention...


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von B. Timothy
Walsh
Gesendet: Dienstag, 18. August 2009 21:49
An: [email protected]
Betreff: st: how to display value label

I have a categorical numerical variable with attached value labels.
Novice question: How would I get the value labels to display rather than 
the values in something like this:

forvalues x = 0(1)1 {	
	display `x'  //just for experimenting
	graph twoway scatter wt wk if group == `x', by(id)  ///
 		saving(wtbywk`x', replace) title("Wt/Wk Group = `x'")
}		

Thanks!
Tim
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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