Robust Location and Scale M-Estimates

DESCRIPTION:
Computes an M-estimate of location and a Huber Proposal 2 estimate of scale. This function is deprecated; use location.m instead.

USAGE:
robloc(y, eff=.96, resid=T, iterh=4, iterb=1)

REQUIRED ARGUMENTS:
y:
vector containing data for which the location is to be computed. Missing values are not accepted.

OPTIONAL ARGUMENTS:
eff:
parameter giving the desired asymptotic efficiency of the location estimate.
resid:
logical flag: if TRUE, y minus the location estimate is returned as a component of the output.
iterh:
number of iterations with the Huber psi.
iterb:
number of iterations with the bisquare psi after the iterations with the Huber psi. Use iterb = 0 for a Huber M-estimate.

VALUE:
a list containing two or three components, depending on the value of resid.
mu:
M-estimate of location unless iterh = iterb = 0, in which case mu is the median.
s:
Huber proposal 2 scale estimate unless iterh = iterb = 0, in which case s is the MAD scale estimate.
resid:
vector of centered data obtained by subtracting mu from y. This is not present unless the input resid is TRUE.

DETAILS:
An M-estimate of location is a solution mu of the equation:

sum(psi( (y-mu)/s )) = 0.

When the scale parameter s is also unknown, one estimation scheme is Huber's Proposal 2. This solves the equation above simultaneously with

sum(psi( (y-mu)/s )^2) = beta,

where beta depends on psi. This system of equations is usually solved iteratively.

A Huber psi function of x is equal to x when abs(x) is less than the tuning constant c and is equal to c times the sign of x otherwise. A bisquare psi function of x equals x * (c^2 - x^2)^2 when abs(x) < c, and equals 0 otherwise. Least squares corresponds to psi of x equal to x. Thus, the Huber psi down-weights outliers and the bisquare entirely ignores data that are extreme outliers.

The robloc algorithm first performs iterh iterations with the Huber psi, then iterb iterations with the bisquare psi. If iterh = iterb = 0, then the median and the MAD are the location and scale estimates.


REFERENCES:
Hampel, F. R., Ronchetti, E. M., Rousseeuw, P. J. and Stahel, W. A. (1986). Robust Statistics: The Approach Based on Influence Functions. Wiley, New York.

Huber, P. J. (1981). Robust Statistics. Wiley, New York.


SEE ALSO:
chb , median , mean , mad .

EXAMPLES:
robloc(car.miles, resid=F)