Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72764

Panel data reshape problem

$
0
0
Dear All,

I tried to reshape panel data:
month sp001 sp002
1975m01 43 29
1975m02 44 29
1975m03 45 28
into long shape by using code
Code:
reshape long sp, i(month) j(var)
. But it didn't work. May I know how to change above data set to a format like:
month sp var
1975m01 1 43
1975m02 1 44
1975m03 1 45
1975m01 2 29
1975m02 2 29
1975m03 2 28
Any suggestion would be much appreciated.

Best regards,
Kim

Viewing all articles
Browse latest Browse all 72764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>