[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: re: Create dataset of variable names and variable labels
From
Kit Baum <[email protected]>
To
[email protected]
Subject
st: re: Create dataset of variable names and variable labels
Date
Thu, 8 May 2008 13:01:08 -0400
postfile pf str32 ( vname vlab alab) using ronnie, replace
qui ds
foreach v in `r(varlist)' {
local vl: var lab `v'
local al: val lab `v'
post pf ("`v'") ("`vl'") ("`al'")
}
postclose pf
Preface this with 'sysuse auto', run this code, and then 'use ronnie'
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |