Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: subvarname and list


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: subvarname and list
Date   Mon, 3 Aug 2009 13:33:00 +0200

<> 

You can actually automate at least part of this process:


*************
sysuse auto, clear

foreach var of varlist * {
	char `var'[varname] "`: var label `var''"
}

list len we pr tr tu /* 
 */ in 1/10, subvarname/* 
 */ ab(20)
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Joerg Eulenberger
Gesendet: Montag, 3. August 2009 12:49
An: statalist@hsphsun2.harvard.edu
Betreff: st: subvarname and list

Dear Statausers,
I have a question to the list-command. I don' t want the varname in the 
list-output-header, i want the varlabel. All i found is the char-command 
and than the subvarname option in the list-command. It is possible to 
say Stata in the char-command use the varlabel as subvarname? For all 
Variables in the Dataset?
I don´t want to type for every each variables a new subvarname like this:

char var51[varname] "since years"

Thanks,
Jörg



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index