extract_random_effects: Extract random intercept and slope effects from lmerMod and /...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/extract_random_effects.R

Description

Extract random intercept and slope effects from lmerMod and / or gam models.

Usage

1
2
3
4
5
6
7
extract_random_effects(
  md4_lmer,
  md4_gamm4,
  md4_lmer_pwl,
  md4_lmer_poly,
  levels_ID = NULL
)

Arguments

md4_lmer

lmerMod object returned from a maeve:: call to lme4::lmer()

md4_gamm4

list with 'mer' component returned from gamm4::gamm4()

md4_lmer_pwl

lmerMod object returned from a maeve by piecewise linear mixed model regression.

md4_lmer_poly

lmerMod object returned from a maeve by polynomial basis mixed model regression.

levels_ID

optional character vector with the ordered levels of subject identifiers. If not provided, the function attempts to get these levels from the models.

Value

a data.frame with intercept & slope random effects.

Author(s)

Bill Forrest forrest@gene.com

See Also

data.frame

Examples

1
 cat( 'No working example for unexported function extract_random_effect().' )

wfforrest/maeve documentation built on Jan. 1, 2021, 12:47 p.m.