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 lmer.

data

as in lmer.

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 lmer.

control

as in lmer.

start

as in lmer.

verbose

as in lmer.

weights

as in lmer.

na.action

as in lmer.

offset

as in lmer.

contrasts

as in lmer.

devFunOnly

as in lmer.

...

as in lmer.

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]