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

st: RE: reshaping data


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: reshaping data
Date   Wed, 30 Mar 2005 11:18:23 +0100

The main hint is that this is very easy so that you 
should be able to work it out for yourself from a reading 
of the help.  

Nick 
[email protected] 

Sascha Robert
 
> I would like to reshape some data. Now it looks something like this:
> 
> id    time    var
> 1     1       x
> 2     1       y
> 1     2       z
> 2     2       w
> 
> I would like to change it to
> 
> id    var_t1    var_t2
> 1     x         z
> 2     y         w
> 
> Any hints?

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