Is -svvarlbl- what you are looking for?
http://ideas.repec.org/c/boc/bocode/s400103.html
(I haven't actually ever used this myself, but thought I would suggest it in case it helps)
Quick question,
Is it possible to export the output of a -label list- command for a specific variable to a separate .dta or Excel file?
For example, in
sysuse auto
label list origin
origin:
[ 0 Domestic ]
[ 1 Foreign ]
How would one store both the variable name and the output inside the [].
Thank you much!
Is -svvarlbl- what you are looking for?
http://ideas.repec.org/c/boc/bocode/s400103.html
(I haven't actually ever used this myself, but thought I would suggest it in case it helps)
I would try something simple like this:
Code:sysuse auto, clear tab foreign keep foreign duplicates drop decode foreign, gen(code) label drop _all list, noobs +--------------------+ | foreign code | |--------------------| | 0 Domestic | | 1 Foreign | +--------------------+
|
|