Extract random effect variances from lme4 mer model object

后端 未结 6 1534

I have a mer object that has fixed and random effects. How do I extract the variance estimates for the random effects? Here is a simplified version of my question.

6条回答
  •  伪装坚强ぢ
    2020-12-24 01:59

    This package is useful for things like this (https://easystats.github.io/insight/reference/index.html)

    library("insight")
    
    get_variance_random(study) #Where study is your fit mixed model
    

提交回复
热议问题