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

st: RE: RE: Creating panel data


From   "Mihalka, Michael" <MihalkaM@marshallcenter.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Creating panel data
Date   Fri, 14 May 2004 15:03:13 +0200

Nick,

Thanks -- it seemed a common enough problem but I would never have hit upon "reshape" as the name of the function.

Cheers!
Michael

-----Original Message-----
From: Nick Cox [mailto:n.j.cox@durham.ac.uk]
Sent: Friday, May 14, 2004 15:00
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Creating panel data


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/

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