Skip to contents

This function checks if the formula contains a mixed effect structure indicated by the presence of "|".

Usage

is_mixedEffect_inFormula(formula)

Arguments

formula

A formula object.

Value

TRUE if the formula contains a mixed effect structure, FALSE otherwise.

Examples

is_mixedEffect_inFormula(y ~ x + (1|group))
#> [1] TRUE