Learn R Programming

insight (version 0.18.6)

find_random_slopes: Find names of random slopes

Description

Return the name of the random slopes from mixed effects models.

Usage

find_random_slopes(x)

Value

A list of character vectors with the name(s) of the random slopes, or NULL if model has no random slopes. Depending on the model, the returned list has following elements:

  • random, the random slopes from the conditional part of model

  • zero_inflated_random, the random slopes from the zero-inflation component of the model

Arguments

x

A fitted mixed model.

Examples

Run this code
if (require("lme4")) {
  data(sleepstudy)
  m <- lmer(Reaction ~ Days + (1 + Days | Subject), data = sleepstudy)
  find_random_slopes(m)
}

Run the code above in your browser using DataLab