Skip to contents

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

Usage

is_formula_mixedTypeI(formula)

Arguments

formula

A formula object.

Value

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

Examples

is_formula_mixedTypeI(formula = y ~ x + (1|group))
#> [1] TRUE