Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: AW: AW: AW: Display Variable Labels
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: AW: AW: AW: Display Variable Labels
Date
Thu, 27 May 2010 18:17:00 +0200
<>
BTW, -ta, sum()- does display the -variable label- of both the categorical
variable and the one being -summarize-d of its own accord:
*************
sysuse auto, clear
di in r "`: var l mpg'"
ta rep78,sum(mpg)
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Donnerstag, 27. Mai 2010 18:04
An: [email protected]
Betreff: st: AW: AW: Display Variable Labels
<>
BTW, Raphael, what kind of a -varlist- is "pwvssn" in your example? Does it
expand to more than one variable?
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Donnerstag, 27. Mai 2010 17:57
An: [email protected]
Betreff: st: AW: Display Variable Labels
<>
See -help extended_fcn-:
*************
sysuse auto, clear
foreach var of varlist _all{
di in r "`: var la `var''"
}
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Raphael Fraser
Gesendet: Donnerstag, 27. Mai 2010 17:53
An: [email protected]
Betreff: st: Display Variable Labels
foreach var of varlist pwvssn {
...
display _newline(3) _column(4) as text "`var'"
ta diag, sum(`var')
...
}
How can I display the variable label rather than the variable name?
Thanks,
Raphael
*
* 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/
*
* 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/