re: Defines random effect terms using the lme4 syntax

reR Documentation

Defines random effect terms using the lme4 syntax

Description

Defines random effect terms using the lme4 syntax

Usage

re(formula)

Arguments

formula

A random effect as returned by lme4::findbars() when a random effect is defined using the lme4 syntax in formula. Currently only simplified random effects (i.e LHS | RHS) are supported.

Value

A list defining the fixed and random effects of the specified random effect

See Also

Functions used to help convert formulas into model designs as_string_formula(), construct_re(), construct_rw(), enw_formula(), enw_manual_formula(), parse_formula(), remove_rw_terms(), rw(), rw_terms(), split_formula_to_terms()

Examples

form <- epinowcast:::parse_formula(~ 1 + (1 | age_group))
re(form$random[[1]])

form <- epinowcast:::parse_formula(~ 1 + (location | age_group))
re(form$random[[1]])

seabbs/epinowcast documentation built on Oct. 8, 2024, 8:35 p.m.