DATA example7_11;
INPUT x y;
CARDS;
6.8  746
7.8  553
8.7  562
8.7  563
8.9  570
19.5 575
10.1 581
10.2 605
10.3 607
10.4 621
11.1 624
12.4 626
13.3 632
13.1 640
13.2 656
;
PROC ROBUSTREG method=mm;          /*调用稳健回归命令，方法选择MM估计*/
MODEL y=x/diagnostics leverage;        /*对变量进行异常点和杠杆点诊断*/
RUN;
PROC ROBUSTREG METHOD=MM (EFF=0.9);          
MODEL y=x/diagnostics leverage; 
RUN;
