全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5403 2
2014-12-08
. reshape long inc,i(province) j(year)
(note: j = 2006 2007 2008 2009 2010 2011 2012 2013)
i=province does not uniquely identify the observations;
there are multiple observations with the same value of province.
Type "reshape error" for a listing of the problem observations.
r(9);
我是想把下面的数据改成面板数据,该输入什么指令?. reshape long inc,i(province) j(year)哪里错了?
province        inc2013        inc2012        inc2011        inc2010        inc2009        inc2008        inc2007        inc2006
1        19500.56        17879.40        16251.93        14113.58        12153.03        11115.00        9846.81        8117.78
2        14370.16        12893.88        11307.28        9224.46        7521.85        6719.01        5252.76        4462.74
3        28301.41        26575.01        24515.76        20394.26        17235.48        16011.97        13607.32        11467.60
4        12602.24        12112.83        11237.55        9200.86        7358.31        7315.40        6024.45        4878.61
5        54684.33        50013.24        45361.85        39169.92        33896.65        30933.28        25776.91        21900.19
6        16045.21        14453.68        12512.30        10123.48        8169.80        7314.58        5757.29        4743.61
7        16832.38        15880.58        14359.88        11672.00        9740.25        8496.20        6423.18        4944.25
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               
                                                               



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-9 00:30:43
顺序反了?inc2006 inc2007....
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-9 08:43:36
LZ应该不止这些数据,province重复了吧。“i=province does not uniquely identify the observations;”
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群