These are the workhorse functions called by manylm
used
to fit multivariate linear models. These should usually not be used
directly unless by experienced users.
manylm.fit(x, y, offset = NULL, tol=1.0e-010, singular.ok = TRUE, …)
manylm.wfit(x, y, w, offset = NULL, tol=1.0e-010, singular.ok = TRUE, …)
design matrix of dimension n * p
.
matrix or an mvabund
object of observations of dimension n*q
.
vector of weights (length n
) to be used in the fitting
process for the manylm.wfit
functions. Weighted least squares is
used with weights w
, i.e., sum(w * e^2)
is minimized.
numeric of length n
). This can be used to
specify an a priori known component to be included in the
linear predictor during fitting.
tolerance for the qr
decomposition. Default
is 1.0e-050.
logical. If FALSE
, a singular model is an
error.
currently disregarded.
a list with components
p
vector
n
vector or matrix
n
vector or matrix
n
vector --- only for the *wfit*
functions.
integer, giving the rank
(not null fits) the QR decomposition.
degrees of freedom of residuals
the hat matrix.
the matrix (t(x)%*%x)
.