Learn R Programming

reformulas (version 0.4.2)

randint: 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)

Value

The new formula

Arguments

form

A formula

Examples

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

Run the code above in your browser using DataLab