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

st: RE: simple variable list with labels

From   "Martin Weiss" <>
To   <>
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''"


-----Original Message-----
[] On Behalf Of Peter Schofield
Sent: Monday, September 29, 2008 11:26 AM
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:

*   For searches and help try:

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