Description Usage Arguments Value
marginalMeans
computes marginal means in ANOVA designs
1 2 3 4 5 6 7 8 9 10 | marginalMeans(
form,
f_dat,
a_dat,
dimn,
keep_term_order = FALSE,
residualmean = FALSE,
whichterm = NULL,
no_icpt = FALSE
)
|
form |
formula of the model |
f_dat |
data.frame of factors |
a_dat |
matrix which contains the dependent variables. It must have as
many rows as f_dat. Usually a_dat is the result of calling
|
dimn |
the original dimension names for the array corresponding to the
column names of |
keep_term_order |
logival variable whether to keep the order of the model terms as provided in form (TRUE) or all interaction terms should follow all main effect terms (FALSE, default) |
residualmean |
logical variable; if TRUE, each factor term is extracted from the data after computing the given marginal mean (default: FALSE) |
whichterm |
character, numeric or logical vector; indices of model terms which should be analyzed (default: NULL, meaning all terms are included) |
no_icpt |
logical value; if TRUE, global mean is subtracted before computing the marginal means (default: FALSE) |
A named list containing the marginal means for each model term
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.