| From | baum <[email protected]> | 
| To | [email protected] | 
| Subject | st: Re: reshape | 
| Date | Tue, 17 Sep 2002 08:28:12 -0400 | 
--On Tuesday, September 17, 2002 2:33 -0400 Alejandro wrote:
Hi, i have the a database like this:
country         descriptor      year1970 year1971 ... year2000
Argentina          var1                x70          x71              x00
Argentina          var2                y70          y71              y00
Bolivia               var1                x70         x71
x00 Bolivia               var2                y70         y71
y00 .
.
.
and so on... i want to know if exists a way in which i could reshape this
wide dataset into a long one that would look like this:
country         year           var1           var2
Argentina       1970            x70            y70
Argentina       1971            x71            y71
    .
    .
    .
 do you know how could i do the reshape of the two variables jointly ? if
i use the <reshape> command i'd have to do it one by one.
| © Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |