# The ROBUSTREG Procedure

### M Estimation

Subsections:

M estimation in the context of regression was first introduced by Huber (1973) as a result of making the least squares approach robust. Although M estimators are not robust with respect to leverage points, they are popular in applications where leverage points are not an issue.

Instead of minimizing a sum of squares of the residuals, a Huber-type M estimator of minimizes a sum of less rapidly increasing functions of the residuals:

where . For the ordinary least squares estimation, is the square function, .

If is known, then when derivatives are taken with respect to , is also a solution of the system of p equations:

where . If is convex, is the unique solution.

The ROBUSTREG procedure solves this system by using iteratively reweighted least squares (IRLS). The weight function is defined as

The ROBUSTREG procedure provides 10 kinds of weight functions through the WEIGHTFUNCTION= option in the MODEL statement. Each weight function corresponds to a function. For a complete discussion, see the section Weight Functions. You can specify the scale parameter by using the SCALE= option in the PROC ROBUSTREG statement.

If is unknown, both and are estimated by minimizing the function

The algorithm proceeds by alternately improving in a location step and in a scale step.

For the scale step, the following three methods are available to estimate , which you can select by specifying the SCALE= option:

1. (SCALE=HUBER <(D=d)>) Compute by the iteration

where

is the Huber function and is the Huber constant (Huber 1981, p. 179). You can use the D=d option to specify d. By default, D=2.5.

2. (SCALE=TUKEY <(D=d)>) Compute by solving the supplementary equation

where

Here is Tukey’s bisquare function, and is the constant such that the solution is asymptotically consistent when (Hampel et al. 1986, p. 149). You can use the D=d option to specify d. By default, D=2.5.

3. (SCALE=MED) Compute by the iteration

where is the constant such that the solution is asymptotically consistent when (Hampel et al. 1986, p. 312).

SCALE=MED is the default.

#### Algorithm

The basic algorithm for computing M estimates for regression is iteratively reweighted least squares (IRLS). As the name suggests, a weighted least squares fit is carried out inside an iteration loop. For each iteration, a set of weights for the observations is used in the least squares fit. The weights are constructed by applying a weight function to the current residuals. Initial weights are based on residuals from an initial fit. The ROBUSTREG procedure uses the unweighted least squares fit as a default initial fit. The iteration terminates when a convergence criterion is satisfied. The maximum number of iterations is set to 1,000. You can specify both the weight function and the convergence criteria.

#### Weight Functions

You can specify the weight function for M estimation by using the WEIGHTFUNCTION= option. The ROBUSTREG procedure provides 10 weight functions. By default, the procedure uses the bisquare weight function. In most cases, M estimates are more sensitive to the parameters of these weight functions than to the type of weight function. The median weight function is not stable and is seldom recommended in data analysis; it is included in the ROBUSTREG procedure for completeness. You can specify the parameters for these weight functions. Except for the Hampel and median weight functions, default values for these parameters are defined such that the corresponding M estimates have 95% asymptotic efficiency in the location model with the Gaussian distribution (Holland and Welsch 1977).

The following list shows the weight functions available. See Table 98.5 for the default values of the constants in these weight functions.

 Andrews Bisquare Cauchy Fair Hampel Huber Logistic Median Talworth Welsch

#### Convergence Criteria

The following convergence criteria are available in PROC ROBUSTREG:

• relative change in the coefficients (CONVERGENCE=COEF)

• relative change in the scaled residuals (CONVERGENCE=RESID)

• relative change in weights (CONVERGENCE=WEIGHT)

You can specify the criteria by using the CONVERGENCE= option in the PROC ROBUSTREG statement. The default is CONVERGENCE=COEF.

You can specify the precision of the convergence criterion by using the EPS= suboption. The default is EPS=1E–8.

In addition to these convergence criteria, a convergence criterion that is based on a scale-independent measure of the gradient is always checked. For more information, see Coleman et al. (1980). A warning is issued if this additional criterion is not satisfied.

#### Asymptotic Covariance and Confidence Intervals

The following three estimators of the asymptotic covariance of the robust estimator are available in PROC ROBUSTREG:

where is a correction factor and . For more information, see Huber (1981, p. 173).

You can specify the asymptotic covariance estimate by using the ASYMPCOV= option. The ROBUSTREG procedure uses H1 as the default because of its simplicity and stability. Confidence intervals are computed from the diagonal elements of the estimated asymptotic covariance matrix.

#### R Square and Deviance

The robust version of R square is defined as

The robust deviance is defined as the optimal value of the objective function on the scale,

where , is the M estimator of , is the M estimator of location, and is the M estimator of the scale parameter in the full model.

#### Linear Tests

Two tests are available in PROC ROBUSTREG for the canonical linear hypothesis

where q is the total number of parameters of the tested effects. The first test is a robust version of the F test, which is referred to as the test. Denote the M estimators in the full and reduced models as and , respectively. Let

with

The robust F test is based on the test statistic

Asymptotically under , where the standardization factor is and is the cumulative distribution function of the standard normal distribution. Large values of are significant. This test is a special case of the general test of Hampel et al. (1986, Section 7.2).

The second test is a robust version of the Wald test, which is referred to as the test. This test uses a test statistic

where is the block (corresponding to ) of the asymptotic covariance matrix of the M estimate of in a p-parameter linear model.

Under , the statistic has an asymptotic distribution with q degrees of freedom. Large values of are significant. For more information, see Hampel et al. (1986, Chapter 7).

#### Model Selection

When M estimation is used, two criteria are available in PROC ROBUSTREG for model selection. The first criterion is a counterpart of Akaike’s (1974) information criterion for robust regression (AICR); it is defined as

where , is a robust estimate of and is the M estimator with the p-dimensional design matrix.

As with AIC, is the weight of the penalty for dimensions. The ROBUSTREG procedure uses (Ronchetti 1985) and estimates it by using the final robust residuals.

The second criterion is a robust version of the Schwarz information criteria (BICR); it is defined as