lad.fit-methods | R Documentation |
Fits a linear model using LAD methods, returning the bare minimum computations.
lad.fit.BR(x, y, tol = 1e-7)
lad.fit.EM(x, y, tol = 1e-7, maxiter = 200)
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 |
The bare bones of a lad
object: the coefficients, residuals, fitted values,
and some information used by summary.lad
.
lad
, lad.fit
, lm
x <- cbind(1, stack.x)
z <- lad.fit.BR(x, stack.loss)
z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.