Hello, I need help. Im pretty new at stata. Im confused how to reshape this from excel import
The original data is
to this
Thank you
The original data is
ENTITY | VAR1 | VAR2 | VAR3 | ||||||
1990 | 1991 | 1992 | 1990 | 1991 | 1992 | 1990 | 1991 | 1992 | |
A | VAL1 | - | VAL2 | - | VAL3 | VAL4 | ..and so on | ||
B |
to this
ENTITY | YEAR | VAR1 | VAR2 | VAR3 |
A | 1990 | VAL1 | - | |
1991 | - | VAR3 | ||
1992 | VAL2 | VAR4 | ||
B | 1990 | |||
1991 | ||||
1992 | ||||
C | ...and so on | |||
Comment