全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5036 15
2017-08-05
悬赏 10 个论坛币 已解决
我参照书上的指令操作FGLS出现错误如下,怎么弄,是否是因为我的时间格式设定错误
xtgls xyl ccar1 lnla1 roa1 ld1 nil1 bb1 ea1 dl1 gdp1 cpi1,panels(cor) cor(ar1)
time is not regularly spaced or does not have intervals of delta -- use
the force option to treat the intervals as though they were regular

面板的结构如下,其中time是2009-2015年半年度数据

. xtset id time
       panel variable:  id (unbalanced)
        time variable:  time, 1 to 12
                delta:  1 unit


最佳答案

黃河泉 查看完整内容

由于你使用半年度数据,所以应该是
二维码

扫码加我 拉你入群

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

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

全部回复
2017-8-5 10:06:43
由于你使用半年度数据,所以应该是
复制代码
二维码

扫码加我 拉你入群

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

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

2017-8-5 16:05:39
黃河泉 发表于 2017-8-5 15:49
由于你使用半年度数据,所以应该是
那怎么把时间改成2009h1 to 2014h2啊,感谢您的解答
. xtset id time, halfyearly
       panel variable:  id (unbalanced)
        time variable:  time, 1960h2 to 1966h1
                delta:  1 halfyear
二维码

扫码加我 拉你入群

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

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

2017-8-5 16:09:44
黃河泉 发表于 2017-8-5 15:49
由于你使用半年度数据,所以应该是
另外,请教您,我的面板存在组间异方差和组内自相关,FGLS出现下列提示,该怎么处理。
. xtgls pl car1 lnla1 roa1 ld1 nil1 ea1 dl1 bb1 gdp1 cpi1 id2-id16 time,p(h) corr(ar1)
time is not regularly spaced or does not have intervals of delta -- use
the force option to treat the intervals as though they were regular
二维码

扫码加我 拉你入群

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

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

2017-8-5 16:41:32
六度人格分裂 发表于 2017-8-5 16:05
那怎么把时间改成2009h1 to 2014h2啊,感谢您的解答
. xtset id time, halfyearly
       panel variab ...
建議用 dataex (先 ssc install dataex 并见说明) 将原始 Stata 资料中具有”代表性”的一部分资料列出,以供有意回答者实验之用,并能提供具体操作指令。
复制代码
二维码

扫码加我 拉你入群

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

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

2017-8-5 18:20:00
黃河泉 发表于 2017-8-5 16:41
建議用 dataex (先 ssc install dataex 并见说明) 将原始 Stata 资料中具有”代表性”的一部分资料列出, ...
文件是实验数据,您帮我看看为什么用FGLS回归时出现如下提示
. xtgls xyl car1 lnla1 roa1 ld1 nil1 ea1 dl1 bb1 gdp1 cpi1,p(h) corr(ar1)
time is not regularly spaced or does not have intervals of delta -- use
the force option to treat the intervals as though they were regular
附件列表

数据.xls

大小:68 KB

 马上下载

数据

二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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