lad.fit-methods {L1pack} | R Documentation |
Fit a least absolute deviation (LAD) regression model
Description
Fits a linear model using LAD methods, returning the bare minimum computations.
Usage
lad.fit.BR(x, y, tol = 1e-7)
lad.fit.EM(x, y, tol = 1e-7, maxiter = 200)
Arguments
x , y |
numeric vectors or matrices for the predictors and the response in
a linear model. Typically, but not necessarily, |
tol |
the relative tolerance for the iterative algorithm. Default is |
maxiter |
The maximum number of iterations for the |
Value
The bare bones of a lad
object: the coefficients, residuals, fitted values,
and some information used by summary.lad
.
See Also
Examples
x <- cbind(1, stack.x)
z <- lad.fit.BR(x, stack.loss)
z
[Package L1pack version 0.41-245 Index]