Hi Stata users,
Please, I need help to change the dataset below format. Note that the
reshape command is not enough to do this transformation.
Id period others variables
1. 1 1996
2. 1 1996
3. 1 1996
4. 1 1997
5. 1 1997
6. 1 1997
7. 1 1998
8. 1 1998
8. 1 1999
9. 1 1999
10. 1 2000
11. 1 2000
12 1 2000
13 1 2001
14 1 2001
15 2 1996
16. 2 1996
17. 2 1996
18. 2 1997
19 2 1997
20 2 1997
21 2 1998
22 2 1998
23 . 1999
24 . 1999
25 2 2000
26 2 2000
27 2 2000
28 2 2001
29 2 2001
30 3 1996
31 3 1996
32 3 1996
33 3 1997
34 3 1997
35 3 1997
36 3 1998
37 3 1998
38 3 1999
39 3 1999
40 3 2000
41 3 2000
42 3 2000
43 . 2001
44 . 2001
45 4 1996
46 4 1996
47 4 1996
48 4 1997
49 4 1997
50 4 1997
51 4 1998
52 4 1998
53 4 1999
54 4 1999
55 4 2000
56 4 2000
57 4 2000
58 4 2001
59 4 2001
***************************************************************
***** I need the data in this format (with the year controlling the time
series operator) ********************
id period others variables
1. 1 1996
2. 1 1997
3. 1 1998
4. 1 1999
5. 1 2000
6. 1 2001
7. 1 1996
8. 1 1997
9. 1 1998
10. 1 1999
11. 1 2000
12. 1 2001
13. 1 1996
14. 1 1997
18 . 1998
19 . 1999
20 1 2000
21 . 2001
THere is no way of knowing why the multiple observations for 1996 in the
original data should be placed in the order of the transformed data. E.g.
if those observations were