Statalist


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

st: RE: simple variable list with labels


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: simple variable list with labels
Date   Mon, 29 Sep 2008 11:35:50 +0200

Does "label" mean variable label or value label (or both)? Anyway:

sysuse auto, clear
foreach var of varlist *{
di "`var'" _col(20) "`: var l `var''" _col(50)  "`: val l `var''"
}


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Peter Schofield
Sent: Monday, September 29, 2008 11:26 AM
To: [email protected]
Subject: st: simple variable list with labels

I'd like to be able to produce a simple list of full variable names and 
labels that can be pasted into a spreadsheet.

So far i've tried using codebook and describe but these either produce 
too little or too much output.

Ideally i'm looking for something like the uselabel command i.e. 
creating a new dataset comprising names and labels.

Any ideas?

-- 
Peter Schofield
Department of General Practice and Primary Care
King's College London School of Medicine
5 Lambeth Walk, London,
SE11 6SP
Tel: 020 7848 4100
*
*   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