Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: how to list variables vertically


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: how to list variables vertically
Date   Mon, 8 Mar 2004 09:47:05 -0500

Try

-xpose, varname clear-
list....

You may want to -preserve- your data.  Also, this approach will not work
with string variables

Michael Blasnik
[email protected]

----- Original Message ----- 
From: "LACHENMAIER" <[email protected]>
To: <[email protected]>
Sent: Monday, March 08, 2004 9:12 AM
Subject: st: how to list variables vertically


> Hi all,
>
> this might be a very simple question, but I have not found a solution
> yet.
>
> Is it possible to create a list or table with the variables appearing
> vertically and the observations horizontally?
>
> The output should look like
>
>       Observ1 Observ2 Observ3
> Var1   xx1     xx2     xx3
> Var2   yy1     yy2     yy3
> Var3   zz1     zz2     zz3
>
>
> This type of presenting the data would be very useful to compare two
> observations. Of course one can do it by copying the data to Excel and
> transpose the data, but this gets very inconvenient if the number of
> variables is larger than the number of columns in Excel (one has to
> paste it first horizontally before one can transpose it).
>
> Thanks a lot,
> Stefan
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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