Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: AW: list output transpose

From   "Martin Weiss" <>
To   <>
Subject   st: AW: list output transpose
Date   Thu, 11 Mar 2010 10:17:59 +0100


What do you want the second column to show? (What is " labelled output in
the value-column."?)

I recommend you apply the latest update (09mar2010) to Stata via -update
all- and apply the brand new -desc, replace clear- command which gives you
the variable labels in no time...


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Joerg
Gesendet: Donnerstag, 11. März 2010 10:08
Betreff: st: list output transpose

Dear statalisters,
i search a possibility to transpose the list-output for an 
individual-analysis. The origin dataset have over 4000 variables.
The dataset include numeric and string variables.

sysuse auto, clear
foreach var of varlist * {
    char `var'[varname] "`: var label `var''"
keep in 1
list, noobs subvarname abbreviate(33)


and now, i search a possibility to transpose the outputtable.
A table with two columns and a row for each variable.
With subvarname in the label-column and labelled output in the value-column.


*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index