1 / 24

第八章 稳健回归

第八章 稳健回归. §8.1 异常值. 我们给出如下的 SAS 模拟计算的程序: data a1; do i=1 to 10 ; set p183; r=rannor(1234567) ; if i=6 then y=-2-x+12+r; else y=-2-x+r; output; end; run;. proc reg data=a1 ; model y=x; output out=b1 p=y1hat; run; data a2; set a1; if x>5 then delete; run; proc reg data=a2;

Télécharger la présentation

第八章 稳健回归

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 第八章 稳健回归

  2. §8.1 异常值

  3. 我们给出如下的SAS模拟计算的程序: data a1; do i=1 to 10 ; set p183; r=rannor(1234567) ; if i=6 then y=-2-x+12+r; else y=-2-x+r; output; end; run;

  4. proc reg data=a1 ; model y=x; output out=b1 p=y1hat; run; data a2; set a1; if x>5 then delete; run; proc reg data=a2; model y=x; output out=b2 p=y2hat; run;

  5. proc gplot data=b; symbol1 v=star c=green I= none; symbol2 v=plus c=red i=l; symbol3 v=plus c=blue i=l; plot y*x haty1*x haty2*x/overlay; run; proc sort data=b1; by x; run; proc sort data=b2; by x; run; data b; merge b1 b2; run;

  6. §7.2 M估计

  7. §7.2 R估计

More Related