R/lmer_extract_sd_random_effects.R

Defines functions lmer_extract_sd_random_effects

## File Name: lmer_extract_sd_random_effects.R
## File Version: 0.04

lmer_extract_sd_random_effects <- function(fit)
{
    require_namespace("lme4")
    object <- lme4::VarCorr(fit)
    vdd <- as.data.frame(object, order="lower.tri")
    pars <- vdd[,"sdcor"]
    return(pars)
}

Try the miceadds package in your browser

Any scripts or data that you put into this service are public.

miceadds documentation built on May 29, 2024, 11:05 a.m.