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

st: RE: Creating panel data


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Creating panel data
Date   Fri, 14 May 2004 13:59:34 +0100

Yes. It is a -reshape- from -wide- to -long-. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Mihalka,
> Michael
> 
> I have data in the form:
> 
> Country1 XYR1 XYR2 XYR3
> Country2 XYR1 XYR2 XYR3
> 
> and would like to have it in the form:
> 
> Country1 YR1 X
> Country1 YR2 X
> Country1 YR3 X
> Country2 YR1 X
> Country2 YR2 X
> Country2 YR3 X
> 
> Is there an easy way to do this in stata (or some other way)?


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index