psi.andrew {HoRM}R Documentation

Andrew's Sine Function

Description

Andrew's sine function for use when fitting a linear model by robust regression using an M-estimator.

Usage

psi.andrew(u, k=1.339, deriv=0)

Arguments

u

Numeric vector of evaluation points.

k

Tuning constant. The suggested default value is 1.339.

deriv

0 or 1: to compute values of this function or of its first derivative.

Value

psi.andrew returns a vector of points evaluated using Andrew's sine function.

References

Andrew, D. F. (1974), A Robust Method for Multiple Linear Regression, Technometrics, 16, 523–531.

Young, D. S. (2017), Handbook of Regression Methods, CRC Press.

See Also

rlm

Examples

 
## Robust fit of the stackloss dataset.

require(MASS)

data(stackloss, package="datasets")

out <- rlm(stack.loss ~ ., data = stackloss, 
           psi = psi.andrew)

out

[Package HoRM version 0.1.3 Index]