楼主: autumn_lovee
14016 23

[回归分析求助] 为什么这个面板数据不能运行命令 xtgls ?? [推广有奖]

  • 0关注
  • 0粉丝

高中生

47%

还不是VIP/贵宾

-

威望
0
论坛币
53 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
103 点
帖子
26
精华
0
在线时间
23 小时
注册时间
2011-8-5
最后登录
2013-1-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
有一个面板数据

xtset province year
       panel variable:  province (strongly balanced)
        time variable: year, 1952 to 2008
                delta: 1 unit
我想运行xtgls 命令,可是为什么出来的是这样的:

. xtgls dfrjzc zfcj wnjh czsrfq czzcfq gdp dfrjsr mzdq zxxsbl province1-province29 t, panels(cor) cor(ar1)
note: province29 omitted because of collinearity
year is not regularly spaced or does not have intervals of delta -- use
the force option to treat the intervals as though they were regular



为什么啊???year 这个变量的间距是有规律的阿?不懂,求解
二维码

扫码加我 拉你入群

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

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

关键词:xtgls 面板数据 Collinearity Intervals Panel VAR because option treat

沙发
ywh19860616 发表于 2011-8-7 09:54:05 |只看作者 |坛友微信交流群
Model
      noconstant               suppress constant term
      panels(iid)              use i.i.d. error structure
      panels(heteroskedastic)  use heteroskedastic but uncorrelated error structure
      panels(correlated)       use heteroskedastic and correlated error structure
      corr(independent)        use independent autocorrelation structure
      corr(ar1)                use AR1 autocorrelation structure
      corr(psar1)              use panel-specific AR1 autocorrelation structure
      rhotype(calc)            specify method to compute autocorrelation parameter; see Options for
                                 details; seldom used
      igls                     use iterated GLS estimator instead of two-step GLS estimator
      force                    estimate even if observations unequally spaced in time
一份耕耘,一份收获。

使用道具

藤椅
ywh19860616 发表于 2011-8-7 09:54:29 |只看作者 |坛友微信交流群
肯定是自身数据存在问题吧
一份耕耘,一份收获。

使用道具

板凳
autumn_lovee 发表于 2011-8-7 10:34:23 |只看作者 |坛友微信交流群
仔细检查了数据,还是没发现有什么问题。year变量下的数据为1952-2008。
. xtgls dfrjzc zfcj wnjh czsrfq czzcfq gdp dfrjsr mzdq zxxsbl province1-province29 t, force可运行,可是不知道该怎么解释结果,郁闷阿

使用道具

报纸
ywh19860616 发表于 2011-8-7 10:47:46 |只看作者 |坛友微信交流群
没有数据,不知道问题处在哪
你可以试下软件自带的数据,是没有问题的,可以运行


你加force选项,经济解释没有任何变化的,只是你数据问题
一份耕耘,一份收获。

使用道具

地板
autumn_lovee 发表于 2011-8-7 13:34:08 |只看作者 |坛友微信交流群
发现不是运行不了 xtgls ,而是后面加 panels(cor) 不行
. xtgls dfrjzc zfcj wnjh czsrfq czzcfq gdp dfrjsr mzdq zxxsbl province1-province29 t,panels(cor)
note: province29 omitted because of collinearity
panels must be balanced

使用道具

7
autumn_lovee 发表于 2011-8-7 13:40:55 |只看作者 |坛友微信交流群
后面加 cor(ar1) 也不行
xtgls dfrjzc zfcj wnjh czsrfq czzcfq gdp dfrjsr mzdq zxxsbl,cor(ar1)
t is not regularly spaced or does not have intervals of delta -- use
the force option to treat the intervals as though they were regular

为什么呢?

使用道具

8
autumn_lovee 发表于 2011-8-7 13:50:03 |只看作者 |坛友微信交流群
请问,如果后面不加 panels() 和 cor() 对模型进行定义,那怎么把 关于异方差和自相关性 的检验结果 运用到模型的设定上去呢?
如果 不添加对模型进行设定的 panels() 和 cor() , 是不是关于异方差和自相关性的检验 就没有意义,不需要做了?

使用道具

9
autumn_lovee 发表于 2011-8-7 14:03:21 |只看作者 |坛友微信交流群
我用 LR 检验出来 是存在组间异方差,用 xtserial 和 xtcsd 检验出来 存在 组内自相关 和 组间同期相关 的,就应该用 panels(cor) 啊,可是用不了, 但是能用 panels(het) ,但是 panels(het) 是适用于组间不相关的,为什么会这样啊?

使用道具

10
autumn_lovee 发表于 2011-8-7 14:18:31 |只看作者 |坛友微信交流群
我用没有缺损数据的面板做, 就不存在这个问题,不晓得是不时因为数据缺损?

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-22 10:05