Description Usage Arguments Details Value Examples
Efficient Linear Model ("elm"
) is used to fit linear
models in an equivalent way to "lm"
but in a reduced time
depending on the design matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
formula |
an object of class |
data |
an optional data frame, list or environment (or object coercible
by |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
weights |
an optional vector of weights to be used in the fitting
process. Should be |
na.action |
a function which indicates what should happen when the data
contain |
method |
the method to be used in fitting the model. The default method
|
model |
a logical value indicating whether model frame should be included as a component of the returned value. |
x |
logical values indicating whether the
model matrix ( |
y |
logical values indicating whether the
model matrix ( |
qr |
logical. If TRUE the corresponding QR decomposition component of the fit is returned. |
singular.ok |
logical; if FALSE a singular fit is an error. |
contrasts |
an optional list. See the |
offset |
this can be used to specify an a priori known component
to be included in the linear predictor during fitting. This should be
|
reduce |
logical; if TRUE an alternate design matrix of |
... |
For eglm: arguments to be used to form the default control argument if it is not supplied directly. For weights: further arguments passed to or from other methods. |
Models for elm
are specified symbolically.
A typical model has the form response ~ terms
where response
is the (numeric) response vector and terms
is a series of terms which
specifies a linear predictor for response
. A terms specification of
the form first + second
indicates all the terms in first
together with all the terms in second
with duplicates removed. A
specification of the form first:second
indicates the set of
terms obtained by taking the interactions of all terms in first
with all terms in second
. The specification first*second
indicates the cross of first
and second
. This is
the same as first + second + first:second
, and exactly the same as
"lm"
from the stats package.
An object of class "elm" that behaves the same way as the "lm"
class, see the function "lm"
. This output also includes the
logical "reduce" and, depending on it, the reduced design matrix "xtx"
when the reduce argument is set to TRUE.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.