buildGLMMadaptive {buildmer}R Documentation

Use buildmer to fit generalized linear mixed models using mixed_model from package GLMMadaptive

Description

Use buildmer to fit generalized linear mixed models using mixed_model from package GLMMadaptive

Usage

buildGLMMadaptive(
  formula,
  data = NULL,
  family,
  buildmerControl = buildmerControl(),
  ...
)

Arguments

formula

A formula specifying both fixed and random effects using lme4 syntax. (Unlike mixed_model, buildGLMMadaptive does not use a separate random argument!)

data

See the general documentation under buildmer-package

family

See the general documentation under buildmer-package

buildmerControl

Control arguments for buildmer — see the general documentation under buildmerControl

...

Additional options to be passed to mixed_model; for backward-compatibility reasons, will also accept buildmer control parameters, although those specified in buildmerControl will take precedence

Details

The fixed and random effects are to be passed as a single formula in lme4 format. This is internally split up into the appropriate fixed and random parts.

See Also

buildmer-package

Examples



# nonsensical model given these data
if (requireNamespace('GLMMadaptive')) model <- buildGLMMadaptive(stress ~ vowel + (vowel|word),
       family=binomial,data=vowels,nAGQ=1)


[Package buildmer version 1.9 Index]