楼主: zerana
69370 128

面板协整:Panel cointegration的STATA实现【xtwest】(免费)   [推广有奖]

VIP

院士

36%

还不是VIP/贵宾

-

威望
3
论坛币
57524 个
通用积分
314.8379
学术水平
793 点
热心指数
747 点
信用等级
603 点
经验
108703 点
帖子
1829
精华
8
在线时间
2659 小时
注册时间
2005-1-26
最后登录
2024-4-19

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

Panel cointegration Test

Westerlund(2007) and  Westerlund(2008) 面板协整之误差修正技术协整检验,为网友消除面板协整之痛苦,带来迅速简洁之快乐。源程序和说明下载见后。运用下载包中的数据,可以获得如下演示结果:

. xtwest loghex loggdp, westerlund constant trend lags(1 3) leads(0 3) lrwindow(3)

Calculating Westerlund ECM panel cointegration tests..........

Results for H0: no cointegration
With 20 series and 1 covariate
Average AIC selected lag length: 2.8
Average AIC selected lead length: 1.65


Statistic    Value     Z-value    P-value 

Gt       -4.082     -9.613     0.000  
Ga      -27.702    -10.626     0.000  
Pt      -12.969     -4.100     0.000  
Pa      -22.470    -10.119     0.000  


. xtwest loghex loggdp, westerlund constant trend lags(1) leads(1) lrwindow(3) bootstrap(100)

Bootstrapping critical values under H0..........
Calculating Westerlund ECM panel cointegration tests..........

Results for H0: no cointegration
With 20 series and 1 covariate


Statistic    Value     Z-value    P-value   Robust P-value

Gt       -3.150     -4.424     0.000         0.050     
Ga      -31.274    -13.027     0.000         0.000     
Pt      -13.809     -5.079     0.000         0.040     
Pa      -26.770    -13.339     0.000         0.000     


----------------------------------------------------------------------------------------------------------------
help for xtwest
----------------------------------------------------------------------------------------------------------------

Westerlund error correction based panel cointegration tests


    xtwest depvar varlist [if exp] [in range] , lags(# [#]) leads(# [#]) lrwindow(#) [constant trend
        bootstrap(#) westerlund noisily]

    xtwest is for use with panel data.  You must tsset your data before using xtwest; see help tsset.


Description


    xtwest implements the four panel cointegration tests developed by Westerlund (2007). The underlying idea
    is to test for the absence of cointegration by determining whether there exists error correction for
    individual panel members or for the panel as a whole.  Consider following error correction model, where
    all variables in levels are assumed to be I(1):

        D.y_it = c_i + a_i1*D.y_it-1 + a_i2*D.y_it-2 + ... +  a_ip*D.y_it-p

                     + b_i0*D.x_it + b_i1*D.x_it-1 + ... + b_ip*D.x_it-p

                     + a_i(y_it-1 - b_i*x_it-1) + u_it

    a_i provides an estimate of the speed of error-correction towards the long run equilibrium
    y_it = - (b_i/a_i) * x_it for that series i. The Ga and Gt test statistics test H0: a_i = 0 for all i
    versus H1: a_i < 0 for at least one i. These statistics start from a weighted average of the individualy
    estimated a_i's and their t-ratio's respectively. The Pa and Pt test statistics pool information over all
    the cross-sectional units to test H0: a_i = 0 for all i vs H1:  a_i < 0 for all i. Rejection of H0 should
    therefore be taken as rejection of cointegration for the panel as a whole.

    The tests are very flexible and allow for an almost completely heterogeneous specification of both the
    long- and short-run parts of the error correction model, where the latter can be determined from the data.
    The series are allowed to be of unequal length.

    If the cross sectional units are suspected to be correlated, robust critical values can be obtained
    through bootstrapping.


Citation

    xtwest is not an official Stata command. If you use xtwest please cite Persyn, D. and J. Westerlund. 2008.
    Error Correction Based cointegration Tests for Panel Data. Stata Journal, forthcoming.


Options

    lags(# [#]) If one number is specified, it determines a fixed number of lags pi to be included in the
        error correction equations.  f two numbers are specified the Akaike information criterion is used to
        determine an optimal lag length pi for each separate time series, within the given limits.

    leads(# [#]) Similar to the option lags it determines the number of leads to be included in the error
        correction equations.

    lrwindow(#) Sets the width of the Bartlett kernel window used in the semi-parametric estimation of long
        run variances.

    constant When given, a constant is added to the cointegration relationship.  trend Allows for a
        deterministic trend in the cointegration relationship.

    trend Allows for a deterministic trend in the cointegration relationship.

    bootstrap(#) This option shows bootstrapped p-values for all four test statistics.  These are robust in
        the presence of common factors in the time series. The argument determines the number of bootstrap
        replications. On Stata/IC the number of replications must be smaller than 800.

    westerlund This option is used only to replicate the tables in Westerlund (2007).

    noisily With this option xtwest shows the regressions for the separate series.  If a range of lags or
        leads is given, only the regression chosen by the AIC is shown.

References

    Persyn, D. and J. Westerlund. 2008. Error Correction Based Cointegration Tests for Panel Data. Stata
        Journal, forthcoming.

    Westerlund, J. 2007. Testing for Error Correction in Panel Data. Oxford Bulletin of Economics and
        Statistics 69(6): 709-748.


 

程序下载:

252689.rar (21.03 KB) 本附件包括:
  • xtwest.hlp
  • xtwestdata.dta
  • xtwest.ado
  • xtwest.do

[此贴子已经被作者于2008-10-3 16:36:30编辑过]


蓝色  金钱 +50  魅力 +10  奖励 2008-10-4 19:12:01
二维码

扫码加我 拉你入群

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

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

关键词:Integration ration xtwest Panel Stata 面板 Stata Panel xtwest

已有 7 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
经济-小白 + 1 + 1 + 1 精彩帖子
Zker + 1 + 1 + 1 精彩帖子
linglinlin + 2 + 2 + 2 精彩帖子
向日葵^ + 5 + 1 + 1 + 1 热心帮助其他会员
日新少年 + 2 + 2 + 2 精彩帖子
金城雨 + 1 + 1 对论坛有贡献
Sunknownay + 100 + 15 + 2 + 2 + 2 鼓励积极发帖讨论

总评分: 经验 + 100  论坛币 + 20  学术水平 + 10  热心指数 + 10  信用等级 + 9   查看全部评分

本帖被以下文库推荐

沙发
xiaoping2006 发表于 2008-10-3 16:59:00 |只看作者 |坛友微信交流群
谢谢你对学术研究的慷慨,建议版主跟你加分。

使用道具

藤椅
wangjie20012006 发表于 2008-10-4 14:16:00 |只看作者 |坛友微信交流群
xiexie

使用道具

板凳
343926 发表于 2008-10-4 18:41:00 |只看作者 |坛友微信交流群
谢谢

使用道具

报纸
bbs0805 发表于 2008-10-4 22:55:00 |只看作者 |坛友微信交流群
谢谢

使用道具

地板
wpapex1 发表于 2008-11-18 13:33:00 |只看作者 |坛友微信交流群
很好,很强大,谢谢楼主 只是原论文好像不好下载啊,楼主下到了吗

使用道具

7
灵韵时空 发表于 2008-12-11 11:19:00 |只看作者 |坛友微信交流群
谢谢!

使用道具

8
徐旸慜 发表于 2008-12-11 19:16:00 |只看作者 |坛友微信交流群
谢谢 强烈要求给楼主加分

使用道具

9
orochieh 发表于 2008-12-14 08:22:00 |只看作者 |坛友微信交流群

太谢谢你了!

[b]万物并作 吾以观复[/b]

使用道具

10
hhongmei1987 发表于 2009-1-6 11:16:00 |只看作者 |坛友微信交流群
谢谢
已有 2 人评分学术水平 热心指数 收起 理由
lifetryer + 3 + 3 精彩帖子
michaeljija + 1 热心帮助其他会员

总评分: 学术水平 + 3  热心指数 + 4   查看全部评分

使用道具

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

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

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

GMT+8, 2024-4-26 13:17