楼主: 蓝色波纹
42222 18

[stata资源分享] 面板协整单位根检验:xtunitroot及拓展 [推广有奖]

  • 8关注
  • 17粉丝

已卖:681份资源

副教授

56%

还不是VIP/贵宾

-

威望
0
论坛币
2940 个
通用积分
86.9706
学术水平
14 点
热心指数
15 点
信用等级
10 点
经验
16071 点
帖子
476
精华
0
在线时间
714 小时
注册时间
2010-10-3
最后登录
2024-1-31

楼主
蓝色波纹 发表于 2013-6-4 00:17:19 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
   很多人在面板数据不知道如何用命令检测协整,包括LLC、HT、Breitung、IPS、Fisher等结果,其实非常简单只需要遵循以下两步:

第一步:安装 xtuniroot命令, ssc install xtunitroot
第二步:如何检验,命令为  xtunitroot +LLC?(检验方式), lags(?)就可以了。具体的命令见下面help 文件:







Title

    [XT] xtunitroot -- Panel-data unit-root tests


Syntax

    Levin-Lin-Chu test

        xtunitroot llc varname [if] [in] [, LLC_options]


    Harris-Tzavalis test

        xtunitroot ht varname [if] [in] [, HT_options]


    Breitung test

        xtunitroot breitung varname [if] [in] [, Breitung_options]


    Im-Pesaran-Shin test

        xtunitroot ips varname [if] [in] [, IPS_options]


    Fisher-type tests (combining p-values)

        xtunitroot fisher varname [if] [in], {dfuller | pperron} lags(#) [Fisher_options]


    Hadri Lagrange multiplier stationarity test

        xtunitroot hadri varname [if] [in] [, Hadri_options]


    LLC_options            Description
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    trend                  include a time trend
    noconstant             suppress panel-specific means
    demean                 subtract cross-sectional means
    lags(lag_spec)         specify lag structure for augmented Dickey-Fuller (ADF) regressions
    kernel(kernel_spec)    specify method to estimate long-run variance
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    lag_spec is either a nonnegative integer or one of aic, bic, or hqic followed by a positive integer.
    kernel_spec takes the form kernel maxlags, where kernel is one of bartlett, parzen, or quadraticspectral and maxlags is either a positive number or one of nwest or llc.


    HT_options             Description
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    trend                  include a time trend
    noconstant             suppress panel-specific means
    demean                 subtract cross-sectional means
    altt                   make small-sample adjustment to T
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    Breitung_options       Description
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    trend                  include a time trend
    noconstant             suppress panel-specific means
    demean                 subtract cross-sectional means
    robust                 allow for cross-sectional dependence
    lags(#)                specify lag structure for prewhitening
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    IPS_options            Description
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    trend                  include a time trend
    demean                 subtract cross-sectional means
    lags(lag_spec)         specify lag structure for ADF regressions
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    lag_spec is either a nonnegative integer or one of aic, bic, or hqic followed by a positive integer.


    Fisher_options         Description
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * dfuller              use ADF unit-root tests
    * pperron              use Phillips-Perron unit-root tests
    * lags(#)              specify lag structure for prewhitening
      demean               subtract cross-sectional means
      dfuller_opts         any options allowed by the dfuller command
      pperron_opts         any options allowed by the pperron command
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * Either dfuller or pperron is required.
    * lags(#) is required.


    Hadri_options          Description
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    trend                  include a time trend
    demean                 subtract cross-sectional means
    robust                 allow for cross-sectional dependence
    kernel(kernel_spec)    specify method to estimate long-run variance
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    kernel_spec takes the form kernel [#], where kernel is one of bartlett, parzen, or quadraticspectral and # is a positive number.


Menu

    Statistics > Longitudinal/panel data > Unit-root tests


Description

    xtunitroot performs a variety of tests for unit roots (or stationarity) in panel datasets.  The Levin-Lin-Chu (2002), Harris-Tzavalis (1999), Breitung (2000; Breitung and Das 2005), Im-Pesaran-Shin (2003), and
    Fisher-type (Choi 2001) tests have as the null hypothesis that all the panels contain a unit root.  The Hadri (2000) Lagrange multiplier (LM) test has as the null hypothesis that all the panels are (trend)
    stationary.  The top of the output for each test makes explicit the null and alternative hypotheses.  Options allow you to include panel-specific means (fixed effects) and time trends in the model of the
    data-generating process.




二维码

扫码加我 拉你入群

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

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

关键词:xtunitroot unitroot 单位根检验 面板协整 Unit 单位 检验

这一辈子,逃离心灵迷惘的苑囿,追逐自由与解放

沙发
雷子2008 在职认证  学生认证  发表于 2013-6-4 21:22:08
谢谢分享啊!
你不理财,财不理你!

藤椅
emilychou 发表于 2013-10-18 22:00:57
谢谢~~学习了。
[fly]ilikeuandulikeme[/fly]

板凳
skydeeye 发表于 2013-12-23 19:31:06
ssc install xtunitroot  报错r(601)
ssc install: "xtunitroot" not found at SSC, type -findit xtunitroot-
(To find all packages at SSC that start with x, type -ssc describe x-)

是什么情况呢?

报纸
高数线代 发表于 2014-3-21 13:28:19
skydeeye 发表于 2013-12-23 19:31
ssc install xtunitroot  报错r(601)
ssc install: "xtunitroot" not found at SSC, type -findit xtuni ...
不能这么直接装,必须先findit xtunitroot,然后针对自己需要的模型安装
已有 2 人评分经验 学术水平 热心指数 信用等级 收起 理由
日新少年 + 1 + 1 + 1 精彩帖子
cactus90 + 20 + 1 + 1 热心帮助其他会员

总评分: 经验 + 20  学术水平 + 2  热心指数 + 2  信用等级 + 1   查看全部评分

地板
韩小韩 发表于 2014-3-31 13:57:03
正在学习,非常感谢

7
红玉琳琬 发表于 2014-4-12 11:16:48
高数线代 发表于 2014-3-21 13:28
不能这么直接装,必须先findit xtunitroot,然后针对自己需要的模型安装
按你说的操作了findit xtunitroot,我想处理的是非平衡面板数据,准备用随机效应模型,但是还是不知道怎么安装?

8
zhsdu 发表于 2014-4-13 15:10:13
你好,为什么我安装了xunitroot命令之后,都是显示”test IPS(或者其他的)not allowed “

9
蓝色波纹 发表于 2014-4-17 22:56:39
zhsdu 发表于 2014-4-13 15:10
你好,为什么我安装了xunitroot命令之后,都是显示”test IPS(或者其他的)not allowed “
直接用  Ipshin命令
这一辈子,逃离心灵迷惘的苑囿,追逐自由与解放

10
高数线代 发表于 2014-4-24 11:45:16
红玉琳琬 发表于 2014-4-12 11:16
按你说的操作了findit xtunitroot,我想处理的是非平衡面板数据,准备用随机效应模型,但是还是不知道怎么 ...
就是寻找到你想要的程序,就是包含xtunitroot的程序,安装即可

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 10:39