Description Usage Arguments Details Value Examples
A basic linear model fitter.
1 2 |
x |
The input data matrix. |
y |
The vector/matrix of independent variable(s). |
offset |
A vector to be included in the predictors. |
tol |
Numerical tolerance for the QR. |
singular.ok |
logical; if |
check.rank |
logical; if |
... |
Extra arguments; ignored with a warning, as in |
The outputs are identical to those of R's lm.fit()
, though the
internals differe significantly.
By default, lm_fit()
will behave exactly as R's lm.fit()
though with a very different backend. R uses the very old and deprecated
LINPACK (library, not the benchmark) routines for fitting a linear model,
whereas linmod uses more recent LAPACK routines. The former exclusively
uses level 1 BLAS, while the latter makes use of level 3 BLAS, which allows
for better performance by better utilizing CPU cache.
A list containing the elements:
coefficients |
residuals |
effects |
rank |
fitted.values |
assign |
qr |
df.residual |
where qr
is a list consisting of the elements:
qr |
qraux |
pivot |
tol |
rank |
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.