Almer {evolvability} | R Documentation |
Linear mixed model with correlated random effects structure
Description
Almer
fits a univariate linear mixed model incorporating a correlated
random effects structure. Can be used to fit phylogenetic mixed models and
animal models. The function is based on the lme4
package and is
very similar to lmer
, apart from the A argument.
Usage
Almer(
formula,
data = NULL,
A = list(),
REML = TRUE,
control = lme4::lmerControl(check.nobs.vs.nlev = "ignore", check.nobs.vs.rankZ =
"ignore", check.nobs.vs.nRE = "ignore"),
start = NULL,
verbose = 0L,
weights = NULL,
na.action = "na.omit",
offset = NULL,
contrasts = NULL,
devFunOnly = FALSE,
...
)
Arguments
formula |
as in |
data |
as in |
A |
an optional named list of sparse matrices. The names must correspond to the names of the random effects in the formula argument. All levels of the random effect should appear as row and column names for the matrices. |
REML |
as in |
control |
as in |
start |
as in |
verbose |
as in |
weights |
as in |
na.action |
as in |
offset |
as in |
contrasts |
as in |
devFunOnly |
as in |
... |
as in |
Value
Almer
an object of class merMod
.
Author(s)
Geir H. Bolstad
Examples
# See the vignette 'Phylogenetic mixed model'.
[Package evolvability version 2.0.0 Index]