Statalist


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

Re: st: AW: subvarname and list


From   Joerg Eulenberger <[email protected]>
To   [email protected]
Subject   Re: st: AW: subvarname and list
Date   Mon, 03 Aug 2009 13:48:24 +0200

Tanks a lot Martin and thanks a lot Michael,
it work's great.
Regards,
Jörg


Martin Weiss schrieb:
<>
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: [email protected] [mailto:[email protected]] Im Auftrag von Joerg Eulenberger
Gesendet: Montag, 3. August 2009 12:49
An: [email protected]
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/


*
*   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