Almer: Linear mixed model with correlated random effects structure

Description Usage Arguments Value Author(s) Examples

View source: R/Almer.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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

1
# See the vignette 'Phylogenetic mixed model'.

evolvability documentation built on Dec. 11, 2021, 9:34 a.m.