Hi, I am very new to Stata. I have this problem where I want to transform a table that looks something like this
into something like this
and so on...
I've tried stack but that does not seem to work, any advice or suggestions on what I should try is very much appreciated. Thank you!
Year | Month | area1 | area2 | area3 |
2000 | 1 | 100 | 200 | 300 |
2000 | 2 | 400 | 500 | 600 |
2000 | 3 | 700 | 800 | 900 |
Year | Month | region | value |
2000 | 1 | area1 | 100 |
2000 | 1 | area2 | 200 |
2000 | 1 | area3 | 300 |
I've tried stack but that does not seem to work, any advice or suggestions on what I should try is very much appreciated. Thank you!
Comment