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

st: RE: Variable label as title in histogram


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Variable label as title in histogram
Date   Thu, 27 Mar 2003 09:56:37 -0000

David LB Schwappach

> I'm preparing a report on survey data. Survey questions are saved as
> variable labels. My question is whether there is an option
> to use the
> variable labels as title in the histogram command? I know
> that I can do
> this manually via copy/paste, but a command to adress the label
> automatically would be very appreciated.

I am not aware that you can do this except through
something like

foreach v of var <varlist> {
	local lbl : variable label `v'
	histogram `v' , title("`lbl'") <other_options>
}

Nick
[email protected]

*
*   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