楼主: bridog
|
31315
14
[原创博文] Durbin-Watson检验 |
博士生 84%
-
|
回帖推荐1.首先要知道你用的哪一个SAS子程序。
2.如果是PROC NLIN,那么非常遗憾,它没有现成的DW统计量,但是你可以在OUTPUT选项中在输出数据集里面输出残差。
3.DW实际上是对残差做一阶自相关判断,因此你完全可以根据公式用SAS中的DATA步来完成代码开发,参考代码如下:
data nkwilling;
do i=1 to 100;
e=normal(0);
output;
end;
run;
data DW;
set nkwilling end=last;
e_lag=lag(e);
e_dif=sum(e,-e_lag);
t1=e_dif*e ...
本帖被以下文库推荐
| ||
| ||
| ||
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord. When disappointment, grief and fear are gone, Sorrow forgot, love's purest joys restored. |
||
| ||
| ||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明