get_ran_var: Extracts random effect variances

get_ran_varR Documentation

Extracts random effect variances

Description

This function computes the sum of random effect variances where one or more of the random effects are random slopes. It uses Paul Johnson' method to compute the average group variance across the levels of a covariate. This function extracts only grouping factors, no residual or overdispersion.

Usage

get_ran_var(mod, overdisp_name = NULL)

Arguments

mod

An lme4 model object.

overdisp_name

name of overdispersion term


partR2 documentation built on May 29, 2024, 2:29 a.m.