lmerModList {merTools}R Documentation

Apply a multilevel model to a list of data frames

Description

Apply a multilevel model to a list of data frames

Apply a Bayesian multilevel model to a list of data frames

Apply a generalized linear multilevel model to a list of data frames

Apply a Bayesian generalized linear multilevel model to a list of data frames

Usage

lmerModList(formula, data, parallel = NULL, ...)

blmerModList(formula, data, parallel = NULL, ...)

glmerModList(formula, data, parallel = NULL, ...)

bglmerModList(formula, data, parallel = NULL, ...)

Arguments

formula

a formula to pass through compatible with merMod

data

a list object with each element being a data.frame

parallel

logical, should the models be run in parallel?

...

additional arguments to pass to the estimating function

Value

a list of fitted merMod objects of class merModList

a merModList

a merModList

a merModList

Examples

sim_list <- replicate(n = 10,
        expr = sleepstudy[sample(row.names(sleepstudy), 180),],
        simplify=FALSE)
fml <- "Reaction ~ Days + (Days | Subject)"
mod <- lmerModList(fml, data = sim_list)
summary(mod)

[Package merTools version 0.4.1 Index]