extract_random_effects function

Extract random effects from formula

Extract random effects from formula

extract_random_effects(formula)

Arguments

  • formula: an object of class "formula", either the formula for the model of interest, the imputation model or the missingness model.

Returns

A list containing "reff_vars", the random effect variables, and "reff", the entire random effect term.

  • Maintainer: Emma Skarstein
  • License: MIT + file LICENSE
  • Last published: 2024-10-31