randint: Remove all random slopes from a formula, while retaining...

View source: R/randint.R

randintR Documentation

Remove all random slopes from a formula, while retaining random intercepts.

Description

Remove all random slopes from a formula, while retaining random intercepts.

Usage

randint(form)

Arguments

form

A formula

Value

The new formula

Examples

f <- ~ 1 + a  + b + (a | f) + (1 + a | g) + (a + b | h ) + (1 + a + b | i)
randint(f)

reformulas documentation built on Feb. 2, 2026, 9:06 a.m.