楼主: sjliu0509
3989 3

[学科前沿] 急!急!急!怀特检验 [推广有奖]

  • 1关注
  • 0粉丝

硕士生

35%

还不是VIP/贵宾

-

威望
0
论坛币
7 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
423 点
帖子
44
精华
0
在线时间
245 小时
注册时间
2009-9-30
最后登录
2020-4-18

楼主
sjliu0509 发表于 2010-5-28 02:27:32 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
用SAS软件怎么做怀特检验阿???
哪位高人指点指点贝!!
二维码

扫码加我 拉你入群

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

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

关键词:怀特检验 sas软件 高人指点 怎么做 怀特 软件

回帖推荐

junshengma 发表于2楼  查看完整内容

1# sjliu0509 Question is not clear. I generated a dataset and run a proc reg. The code and results are as following. some explanation are in the code. Hope this will help you. Let me know what you think. data test; seed=123456; do i=1 to 100; weight=30*NORMAL(seed)+120; height=1.3*weight+NORMAL(SEED); output; end; run; proc print data=test; /*The White test tests ...

harlon1976 发表于4楼  查看完整内容

还是举个例子来说吧: data a; do i=1 to 100; if i le 50 then y=2+0.5*i+2*normal(0); else y=2+0.5*i+6*normal(0); output; end; proc model; parms a0 a1; y=a1+a2*i; fit y/white; run;

本帖被以下文库推荐

沙发
junshengma 发表于 2010-5-28 05:45:23
1# sjliu0509

Question is not clear. I generated a dataset and run a proc reg. The code and results are as following. some explanation are in the code. Hope this will help you. Let me know what you think.

data test;
seed=123456;
do i=1 to 100;
   weight=30*NORMAL(seed)+120;
   height=1.3*weight+NORMAL(SEED);
   output;
   end;
   run;
proc print data=test;
/*The White test tests the null hypothesis that the variance of the residuals is homogenous.
Therefore, if the p-value is very small, we would have to reject the hypothesis and
accept the alternative hypothesis that the variance is not homogenous.
We use the / spec option on the model statement to obtain the White test. */

proc reg;
model height=weight/ spec;
run;

                                         The SAS System           16:14 Friday, May 15, 2009  53
                                       The REG Procedure
                                         Model: MODEL1
                                  Dependent Variable: height
                            Number of Observations Read         100
                            Number of Observations Used         100

                                      Analysis of Variance
                                             Sum of           Mean
         Source                   DF        Squares         Square    F Value    Pr > F
         Model                     1         176720         176720     185416    <.0001
         Error                    98       93.40413        0.95310
         Corrected Total          99         176814

                      Root MSE              0.97627    R-Square     0.9995
                      Dependent Mean      156.60601    Adj R-Sq     0.9995
                      Coeff Var             0.62339

                                      Parameter Estimates
                                   Parameter       Standard
              Variable     DF       Estimate          Error    t Value    Pr > |t|
              Intercept     1        0.21567        0.37608       0.57      0.5676
              weight        1        1.29890        0.00302     430.60      <.0001

                                         The SAS System           16:14 Friday, May 15, 2009  54
                                       The REG Procedure
                                         Model: MODEL1
                                  Dependent Variable: height
                                    Test of First and Second
                                      Moment Specification
                                   DF    Chi-Square    Pr > ChiSq
                                    2          2.28        0.3206

it is not significant as which is what we expected.
已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 10 + 10 热心帮助其他会员

总评分: 经验 + 10  论坛币 + 10   查看全部评分

藤椅
harlon1976 发表于 2010-5-29 09:08:11
model过程可以直接执行white过程,具体用法你可参考这个过程的一些介绍。

板凳
harlon1976 发表于 2010-5-29 21:07:32
还是举个例子来说吧:
data a;
do i=1 to 100;
if i le 50 then y=2+0.5*i+2*normal(0);
else  y=2+0.5*i+6*normal(0);
output;
end;
proc model;
parms a0 a1;
y=a1+a2*i;
fit y/white;
run;
已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 10 + 10 热心帮助其他会员

总评分: 经验 + 10  论坛币 + 10   查看全部评分

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

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