Build a linear model for ART data with response aligned or aligned and ranked by the specified term from the model.
artlm(
m,
term,
response = c("art", "aligned"),
factor.contrasts = "contr.sum",
...
)
An object of class lm
if formula(m)
does not
contain grouping or error terms, an object of class merMod
(i.e. a model fit by lmer
) if it contains grouping terms, or
an object of class aovlist
(i.e. a model fit by aov
) if
it contains error terms.
An object of class art
.
A character vector indicating the effect term
in the transformed data in m
to use as the aligned or art response.
Which response to use: the aligned response
("aligned"
) or the aligned and ranked ("art"
) response.
The name of the contrast-generating function to be
applied by default to fixed effect factors. Sets the the first element of
options("contrasts")
for the duration of this function. The
default is to use "contr.sum"
, i.e. sum-to-zero contrasts, which is
appropriate for Type III ANOVAs (the default ANOVA type for
anova.art
).
Matthew Kay
This function is used primarily for post-hoc tests. To run an ANOVA, it does
not need to be called directly; instead, use anova.art
, which
calls this function as needed.
See art
for an example. See also
anova.art
, which makes use of this function.