Chapter Contents |
Previous |
Next |
The NLIN Procedure |
The NOHALVE option is used because the SSE definition is modified at each iteration and the step-shortening criteria is thus circumvented.
Iteratively reweighted least squares (IRLS) can produce estimates for many of the robust regression criteria suggested in the literature. These methods act like automatic outlier rejectors since large residual values lead to very small weights. Holland and Welsch (1977) outline several of these robust methods. For example, the biweight criterion suggested by Beaton and Tukey (1974) tries to minimize
where
or
where r is , is a measure of scale of the error, and B is a tuning constant.
The weighting function for the biweight is
or
The biweight estimator depends on both a measure of scale (like the standard deviation) and a tuning constant; results vary if these values are changed.
The data are the population of the United States (in millions), recorded at ten-year intervals starting in 1790 and ending in 1990.
title 'U.S. Population Growth'; data uspop; input pop :6.3 @@; retain year 1780; year=year+10; yearsq=year*year; datalines; 3929 5308 7239 9638 12866 17069 23191 31443 39818 50155 62947 75994 91972 105710 122775 131669 151325 179323 203211 226542 248710 ; title 'Beaton/Tukey Biweight Robust Regression using IRLS'; proc nlin data=uspop nohalve; parms b0=20450.43 b1=-22.7806 b2=.0063456; model pop=b0+b1*year+b2*year*year; resid=pop-model.pop; sigma=2; b=4.685; r=abs(resid / sigma); if r<=b then _weight_=(1-(r / b)**2)**2; else _weight_=0; output out=c r=rbi; run; data c; set c; sigma=2; b=4.685; r=abs(rbi / sigma); if r<=b then _weight_=(1-(r / b)**2)**2; else _weight_=0; proc print; run;
Output 45.2.1: Nonlinear Least Squares Analysis
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.