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:58:53 +0200

sysuse auto, clear
cap ssc inst descsave
di in red _rc
cap ssc inst outreg2
di in red _rc

descsave, saving(autodesc.dta, replace)

u autodesc
outsheet using "mydescription.csv", comma noquote replace
shellout mydescription.csv


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