Learn R Programming

lme4 (version 1.1-7)

nobars: Omit terms separated by vertical bars in a formula

Description

Remove the random-effects terms from a mixed-effects formula, thereby producing the fixed-effects formula.

Usage

nobars(term)

Arguments

term
the right-hand side of a mixed-model formula

Value

  • the fixed-effects part of the formula

See Also

formula, model.frame, model.matrix.

Other utilities: findbars, mkRespMod, mkReTrms, nlformula, subbars

Examples

Run this code
nobars(Reaction ~ Days + (Days|Subject)) ## => Reaction ~ Days

Run the code above in your browser using DataLab