楼主: 24颗米粒
35365 11

[回归分析求助] 怎么看DW值? [推广有奖]

  • 4关注
  • 4粉丝

讲师

79%

还不是VIP/贵宾

-

威望
0
论坛币
1386 个
通用积分
24.9449
学术水平
9 点
热心指数
9 点
信用等级
7 点
经验
9039 点
帖子
326
精华
1
在线时间
492 小时
注册时间
2012-12-7
最后登录
2024-4-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
回归结果里没有DW值
  Source |       SS       df       MS              Number of obs =      34
-------------+------------------------------           F(  1,    32) = 4416.51
       Model |  59.5442962     1  59.5442962           Prob > F      =  0.0000
    Residual |  .431430709    32   .01348221           R-squared     =  0.9928
-------------+------------------------------           Adj R-squared =  0.9926
       Total |   59.975727    33  1.81744627           Root MSE      =  .11611

------------------------------------------------------------------------------
     ln_gdpl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ln_til |    .788215   .0118606    66.46   0.000     .7640558    .8123742
       _cons |   .6453122   .0280965    22.97   0.000     .5880815    .7025429

------------------------------------------------------------------------------


在哪能看到DW值?

                       


二维码

扫码加我 拉你入群

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

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

关键词:dw值 Residual Interval Squared Square

对数据愈苛求,数据会愈多供认,但威逼下的供词在科学法庭上是不容许的。
沙发
wangxuanaiwo 发表于 2013-5-13 21:43:33 |只看作者 |坛友微信交流群
这里面好像没有

使用道具

藤椅
24颗米粒 学生认证  发表于 2013-5-13 21:57:19 |只看作者 |坛友微信交流群
wangxuanaiwo 发表于 2013-5-13 21:43
这里面好像没有
有什么命令可以看到DW值吗?
对数据愈苛求,数据会愈多供认,但威逼下的供词在科学法庭上是不容许的。

使用道具

板凳
wangxuanaiwo 发表于 2013-5-13 22:19:31 |只看作者 |坛友微信交流群
我只会用SPSS做DW检验,你用的是STATA吧

使用道具

报纸
蓝色 发表于 2013-5-13 22:24:43 来自手机 |只看作者 |坛友微信交流群
论坛上有using stata for principles of econometric
introduction to econometric using stata
高级计量经济学与stata应用
这几本书,上面都有命令介绍

使用道具

地板
24颗米粒 学生认证  发表于 2013-5-13 23:24:16 |只看作者 |坛友微信交流群
wangxuanaiwo 发表于 2013-5-13 22:19
我只会用SPSS做DW检验,你用的是STATA吧
是stata
对数据愈苛求,数据会愈多供认,但威逼下的供词在科学法庭上是不容许的。

使用道具

7
24颗米粒 学生认证  发表于 2013-5-13 23:25:32 |只看作者 |坛友微信交流群
蓝色 发表于 2013-5-13 22:24
论坛上有using stata for principles of econometric
introduction to econometric using stata
高级计量 ...
是不是有的回归没有DW值 要专门做DW值?
对数据愈苛求,数据会愈多供认,但威逼下的供词在科学法庭上是不容许的。

使用道具

8
蓝色 发表于 2013-5-14 00:04:33 |只看作者 |坛友微信交流群
很截面数据你还做dw检验吗

针对不同的回归,有不用的检验命令
所以你的看书
看stata的手册



Title

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


Description

    The following postestimation commands for time series are available for 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; see [TS] tsset.

    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 Lagrange multiplier 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 (Durbin and Watson 1950) to test for first-order serial correlation in the     disturbance when all the regressors are strictly exogenous.


Syntax for estat archlm

        estat archlm [, archlm_options]


    archlm_options    Description
    --------------------------------------------------------------------------------------------------------------------------------
    lags(numlist)     test numlist lag order
    force             allow test after regress, vce(robust)
    --------------------------------------------------------------------------------------------------------------------------------


Options for estat archlm

    lags(numlist) specifies a list of numbers, indicating the lag orders to be tested.  The test will be performed separately for
        each order.  The default is order one.

    force allows the test to be run after regress, vce(robust).  The command will not work if the vce(cluster clustvar) option is
        specified with regress.


Syntax for estat bgodfrey

        estat bgodfrey [, bgodfrey_options]


    bgodfrey_options     Description
    --------------------------------------------------------------------------------------------------------------------------------
    lags(numlist)        test numlist lag orders
    nomiss0              do not use Davidson and MacKinnon's approach
    small                obtain p-values using the F or t distribution
    --------------------------------------------------------------------------------------------------------------------------------


Options for estat bgodfrey

    lags(numlist) specifies a list of numbers, indicating the lag orders to be tested.  The test will be performed separately for
        each order.  The default is order one.

    nomiss0 specifies that Davidson and MacKinnon's approach (1993, 358), which replaces the missing values in the initial
        observations on the lagged residuals in the auxiliary regression with zeros, not be used.

    small specifies that the p-values of the test statistics be obtained using the F or t distribution instead of the default
        chi-squared or normal distribution.


Syntax for estat durbinalt

        estat durbinalt [, durbinalt_options]


    durbinalt_options      Description
    --------------------------------------------------------------------------------------------------------------------------------
    lags(numlist)          test numlist lag orders
    nomiss0                do not use Davidson and MacKinnon's approach
    robust                 compute standard errors using the robust/sandwich estimator
    small                  obtain p-values using the F or t distribution
    force                  allow test after regress, vce(robust) or newey
    --------------------------------------------------------------------------------------------------------------------------------


Options for estat durbinalt

    lags(numlist) specifies a list of numbers, indicating the lag orders to be tested.  The test will be performed separately for
        each order.  The default is order one.

    nomiss0 specifies that Davidson and MacKinnon's approach (1993, 358), which replaces the missing values in the initial
        observations on the lagged residuals in the auxiliary regression with zeros, not be used.

    robust specifies that the Huber/White/sandwich robust estimator for the variance-covariance matrix be used in Durbin's
        alternative test.

    small specifies that the p-values of the test statistics be obtained using the F or t distribution instead of the default
        chi-squared or normal distribution.  This option may not be specified with robust, which always uses an F or t distribution.

    force allows the test to be run after regress, vce(robust) and after newey.  The command will not work if the vce(cluster
        clustvar) option is specified with regress.


Syntax for estat dwatson

        estat dwatson


Examples

    ----------------------------------------------------------------------------------------------------------------------------------
    . webuse klein
    . tsset yr
    . regress consump wagegovt
    . estat dwatson
    . estat durbinalt, small
    ----------------------------------------------------------------------------------------------------------------------------------
    . webuse klein
    . tsset yr
    . regress consump wagegovt L.consump L2.consump
    . estat durbinalt, small lags(1/2)
    . estat bgodfrey, small lags(1/2)
    ----------------------------------------------------------------------------------------------------------------------------------
    . webuse klein
    . tsset yr
    . regress consump wagegovt
    . estat archlm, lags(1 2 3)
    ----------------------------------------------------------------------------------------------------------------------------------


Saved results

    estat archlm saves the following in r():

    Scalars   
      r(N)           number of observations
      r(k)           number of regressors
      r(N_gaps)      number of gaps

    Macros   
      r(lags)        lag order

    Matrices  
      r(arch)        test statistic for each lag order
      r(df)          degrees of freedom
      r(p)           two-sided p-values

    estat bgodfrey saves the following in r():

    Scalars   
      r(N)           number of observations
      r(k)           number of regressors
      r(N_gaps)      number of gaps

    Macros   
      r(lags)        lag order

    Matrices  
      r(chi2)        chi-squared statistic for each lag order
      r(F)           F statistic for each lag order (small only)
      r(df_r)        residual degrees of freedom (small only)
      r(p)           two-sided p-values
      r(df)          degrees of freedom

    estat durbinalt saves the following in r():

    Scalars   
      r(N)           number of observations
      r(k)           number of regressors
      r(N_gaps)      number of gaps

    Macros   
      r(lags)        lag order

    Matrices  
      r(chi2)        chi-squared statistic for each lag order
      r(F)           F statistic for each lag order (small only)
      r(df_r)        residual degrees of freedom (small only)
      r(p)           two-sided p-values
      r(df)          degrees of freedom

    estat dwatson saves the following in r():

    Scalars   
      r(N)           number of observations
      r(k)           number of regressors
      r(N_gaps)      number of gaps
      r(dw)          Durbin-Watson statistic


References

    Davidson, R., and J. G. MacKinnon. 1993.  Estimation and Inference in Econometrics.  New York: Oxford University Press.

    Durbin, J., and G. S. Watson. 1950. Testing for serial correlation in least squares regression. I. Biometrika 37: 409-428.

使用道具

9
飞龙将军 发表于 2013-11-9 14:16:40 |只看作者 |坛友微信交流群
只要在命令栏里输入如下命令即可:
estat dwatson

如果你的stata是比较早版本的,则输入
dwstat
已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
SpencerMeng + 5 + 1 热心帮助其他会员
泡泡.@. + 1 + 1 + 1 热心帮助其他会员

总评分: 论坛币 + 5  学术水平 + 1  热心指数 + 2  信用等级 + 1   查看全部评分

使用道具

10
sssys 发表于 2013-12-11 13:59:29 |只看作者 |坛友微信交流群
是的

使用道具

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

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

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

GMT+8, 2024-5-21 16:35