.BG
.VE $Header: /usr3/s/current/s/.help/RCS/l1fit,v 1.2 83/12/30 19:29:31 rab Exp $
.FN l1fit
.TL
l1fit: Minimum Absolute Residual (L1) regression
.CS
l1fit(x, y, int)
.PP
.AG x
X matrix for fitting Y=Xb+e with variables in columns,
observations across rows.  Should not contain column of 1's
(see argument `int').  Number of rows of `x' should equal
the number of data values in `y'.  There should be fewer
columns than rows.
.AG y
numeric vector with as many observations as the number of
rows of `x'.
.AG int
flag for intercept; if TRUE (default) an intercept term is
included in regression model.
.RT
structure defining the regression (compare function
`regress').
.RC coef
vector of coefficients with constant term as first value
(optional depending on argument `int')
.RC resid
residuals from the fit, i.e. `resid' is `Y\-Xb'.
.SH REFERENCE
Barrodale and Roberts, 
"Solution of an Overdetermined System of Equations in the L1 Norm".
.ul
CACM,
June 1974, pp 319-320.
.KW array*
.KW regression
.WR
