全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
8098 9
2009-05-04

请教,输入“estat dwatson”或“estat durbinalt”,结果窗口显示“sample may not include multiple panels”。

我的数据年度是04--06年,已经tsset id year。

这是什么原因呢?谢谢!

我需要DW统计量,不知这样是否有误?

二维码

扫码加我 拉你入群

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

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

全部回复
2009-5-5 07:11:00

那个命令是不能做面板数据的

而且才3年的数据

二维码

扫码加我 拉你入群

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

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

2009-5-5 07:15:00

Title

    [R] regress postestimation time series -- Postestimation tools for regress with time series


Description

    The following postestimation commands for time series are available after regress:


    command              description
    --------------------------------------------------------------------------------------------------------
    estat archlm         test for ARCH effects in the residuals
    estat bgodfrey       Breusch-Godfrey test for higher-order serial correlation
    estat durbinalt      Durbin's alternative test for serial correlation
    estat dwatson        Durbin-Watson d statistic to test for first-order serial correlation
    --------------------------------------------------------------------------------------------------------


Special-interest postestimation commands

    These commands provide regression diagnostic tools specific to time series.  You must tsset your data before
    using these commands.

    estat archlm tests for time-dependent volatility.  estat dwatson, estat durbinalt, and estat bgodfrey test for
    serial correlation in the residuals of a linear regression.  For non-time-series regression diagnostic tools,
    see [R] regress postestimation.

    estat archlm performs Engle's LM test for the presence of autoregressive conditional heteroskedasticity.

    estat bgodfrey performs the Breusch-Godfrey test for higher-order serial correlation in the disturbance.  This
    test does not require that all the regressors be strictly exogenous.

    estat durbinalt performs Durbin's alternative test for serial correlation in the disturbance.  This test does
    not require that all the regressors be strictly exogenous.

    estat dwatson computes the Durbin-Watson d statistic to test for first-order serial correlation in the
    disturbance when all the regressors are strictly exogenous.

帮助的上面也写了是regress postestimation 的检验,而不是面板panel的检验。


二维码

扫码加我 拉你入群

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

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

2009-5-5 07:22:00

--------------------------------------------------------------------------------------------------------------------
help for xtserial                                                                                    (SJ3-2: st0039)
--------------------------------------------------------------------------------------------------------------------

Wooldridge test for serial correlation in panel-data models

        xtserial depvar [varlist] [if exp] [in range] [, output]

    You must tsset your data before using xtserial; see help tsset.


Description

    xtserial implements a test for serial correlation in the idiosyncratic errors of a linear panel-data model
    discussed by Wooldridge (2002).  Drukker (2003) presents simulation evidence that this test has good size and
    power properties in reasonable sample sizes.

    Under the null of no serial the residuals from the regression of the first-differenced variables should have
    an autocorrelation of -.5.  This implies that the coefficient on the lagged residuals in a regression of the
    lagged residuals on the current residuals should be -.5.  xtserial performs a Wald test of this hypothesis.
    See Drukker (2003) and Wooldridge (2002) for further details.


Options

    output specifies that the output from the first-differenced regression should be displayed.  By default, the
        first-differenced regression output is not displayed.


Examples

    . xtserial ln_wage age* ttl_exp tenure* south, output


References

    Drukker, D. M. 2003.  Testing for serial correlation in linear panel-data models.  Stata Journal (3)2:
        168-177.

    Wooldridge, J. M.  2002.  Econometric Analysis of Cross Section and Panel Data.  Cambridge, MA: MIT Press.

二维码

扫码加我 拉你入群

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

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

2009-5-5 15:48:00

谢谢蓝版:)

不过我不是面板数据,我的样本是混合截面数据(三年的数据混合)。

我regress y x1 x2后,输入“estat dwatson”或“estat durbinalt”,

结果窗口显示“time variable not set, use -tsset varname ...-”。

然后我就用tsset设置tsset id year。(估计是这设置有问题?)

要怎么处理呢?

谢谢啦。。。

二维码

扫码加我 拉你入群

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

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

2009-5-5 18:08:00
以下是引用jianlamhua在2009-5-5 15:48:00的发言:

谢谢蓝版:)

不过我不是面板数据,我的样本是混合截面数据(三年的数据混合)。

我regress y x1 x2后,输入“estat dwatson”或“estat durbinalt”,

结果窗口显示“time variable not set, use -tsset varname ...-”。

然后我就用tsset设置tsset id year。(估计是这设置有问题?)

要怎么处理呢?

谢谢啦。。。

你的数据保证每年对于一个样本就没有问题的。

如果你是每年对于不同的样本,那也会出现问题的。

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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