Minimizes Jaeckel's dispersion function to obtain a rank-based solution for linear models.
rfit(formula, data = list(), ...)
# S3 method for default
rfit(formula, data, subset, yhat0 = NULL,
scores = Rfit::wscores, symmetric = FALSE, TAU = "F0", ...)
an object of class formula
an optional data frame
an optional argument specifying the subset of observations to be used
an n by vector of initial fitted values, default is NULL
an object of class 'scores'
logical. If 'FALSE' uses median of residuals as estimate of intercept
version of estimation routine for scale parameter. F0 for Fortran, R for (slower) R, N for none
additional arguments to be passed to fitting routines
estimated regression coefficents with intercept
the residuals, i.e. y-yhat
yhat = x betahat
centered design matrix
estimated value of the scale parameter tau
estimated value of the scale parameter tau_s
estimated regression coefficents
Call to the function
Rank-based estimation involves replacing the L2 norm of least squares estimation with a pseudo-norm which is a function of the ranks of the residuals.
That is, in rank estimation, the usual notion of Euclidean distance is replaced with another measure of distance which is referred to as Jaeckel's (1972) dispersion function.
Jaeckel's dispersion function depends on a score function and a library of commonly used score functions is included. e.g. Wilcoxon and sign score functions.
If an inital fit is not supplied (i.e. yhat0 = NULL) then inital fit is based on an LS fit via lm
.
Hettmansperger, T.P. and McKean J.W. (2011), Robust Nonparametric Statistical Methods, 2nd ed., New York: Chapman-Hall.
Jaeckel, L. A. (1972). Estimating regression coefficients by minimizing the dispersion of residuals. Annals of Mathematical Statistics, 43, 1449 - 1458.
Jureckova, J. (1971). Nonparametric estimate of regression coefficients. Annals of Mathematical Statistics, 42, 1328 - 1338.
# NOT RUN {
data(baseball)
data(wscores)
fit<-rfit(weight~height,data=baseball)
summary(fit)
# }
Run the code above in your browser using DataLab