用SAS软件怎么做怀特检验阿???
哪位高人指点指点贝!!
|
楼主: sjliu0509
|
3989
3
[学科前沿] 急!急!急!怀特检验 |
|
硕士生 35%
-
|
回帖推荐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;
本帖被以下文库推荐
| ||
|
|
| ||
| ||
加好友,备注jltj京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


