Skip to contents

This function checks if the formula follows a specific type 0 mixed effect structure, which consists of a unique random effect indicated by the presence of "|".

Usage

is_formula_mixedType0(formula)

Arguments

formula

A formula object.

Value

TRUE if the formula follows the specified type 0 mixed effect structure, FALSE otherwise.

Examples

is_formula_mixedType0(formula = y ~ (1|group))
#> [1] TRUE