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" <>
To   <>
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>


*   For searches and help try:

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