全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2466 1
2013-11-04
悬赏 10 个论坛币 未解决
请教一下,面板数据求滞后项,我才去如下命令,但是出错了,请教一下什么原因?怎么处理呢?
. gen tci2_lag=L.tci2
not sorted
r(5);

[P]     error . . . . . . . . . . . . . . . . . . . . . . . . .  Return code 5
        not sorted;
        master data not sorted;
        using data not sorted;
        The observations of the data are not in the order required.
        To solve the problem, use sort to sort the data then
        reissue the command; see [D] sort.

我sort year后,还是出现同样的问题,not sortedr(5);


请教一下诸位!!谢谢啦!


二维码

扫码加我 拉你入群

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

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

全部回复
2013-11-4 08:41:07
试试先
xtset country year

country为个体识别
year为年度识别
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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