Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Reorganization of pael data

From   "Martin Weiss" <>
To   <>
Subject   st: AW: Reorganization of pael data
Date   Wed, 14 Apr 2010 11:43:08 +0200


Have you tried Nick`s ?


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Mareike
Gesendet: Mittwoch, 14. April 2010 11:36
Betreff: st: Reorganization of pael data

Dear Statalist,

I have a panel dataset that is structured the following way:

country variable year observation
  A        var1   x   obs_A_var1_x
  A        var1   y   obs_A_var1_y
  A        var2   x   obs_A_var2_x
  A        var2   y   obs_A_var2_y
  B        var1   x   obs_B_var1_x

But I want it to be structured as followed:

country year var1 var2
    A    x
    A    y
    B    x
    B    y

Is there a command for transposing the data like that?

Thanks in advance


*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index