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" <[email protected]>
To   <[email protected]>
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:[email protected]]
Sent: Friday, May 14, 2004 15:00
To: [email protected]
Subject: st: RE: Creating panel data


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

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index