Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: SImple question on "describe"

From   Philip Ryan <>
Subject   Re: st: SImple question on "describe"
Date   Wed, 21 Jun 2006 10:47:26 +0930

In answer to your first question, perhaps:

====== save this as ds_varlab.ado =========
program ds_varlab
quietly ds
foreach var of varlist `r(varlist)' {
di "`var'" _col(36) "`: variable label `var''"

. sysuse auto, clear
. d_var

make                         Make and Model
price                        Price
mpg                          Mileage (mpg)
rep78                        Repair Record 1978
headroom                     Headroom (in.)
trunk                        Trunk space (cu. ft.)
weight                       Weight (lbs.)
length                       Length (in.)
turn                         Turn Circle (ft.)
displacement                 Displacement (cu. in.)
gear_ratio                   Gear Ratio
foreign                      Car type


At 05:44 PM 20/06/2006 -0700, you wrote:

I've checked the user's guide, programming and the
reference guide.  I want to use describe and only want
the variable name and variable label - not the other
information.  Also, when I use a table command - I
would like to see BOTH the variable name and the
variable label - is this possible?


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
*   For searches and help try:
Philip Ryan
Associate Professor,
Discipline of Public Health

Director, Data Management & Analysis Centre

Associate Dean (IT)
Faculty of Health Sciences

postal address:
Department of Public Health
Mail Drop 511
University of Adelaide 5005
South Australia

Level 6
Bice Building
Royal Adelaide Hospital
North Terrace

tel 61 8 8303 3570
fax 61 8 8223 4075
CRICOS Provider Number 00123M
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
*   For searches and help try:

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