getModMatAndGrpFac: Get model matrix and grouping factor

Description Usage Arguments Value Examples

Description

This is kind of like model.matrix but for random effects terms.

Usage

1

Arguments

bar

random effect language object (e.g. x | g)

fr

model frame

Value

list with model matrix and grouping factor

Examples

1
2
3
set.seed(1)
dat <- data.frame(f = gl(5, 2), x = rnorm(10))
getModMatAndGrpFac(quote(x | f), dat)

stevencarlislewalker/lme4ord documentation built on May 30, 2019, 4:43 p.m.