insight icon indicating copy to clipboard operation
insight copied to clipboard

get_variance() returns NULL when modeling variance in brms

Open matschmitz opened this issue 1 year ago • 4 comments

The get_variance() function returns NULL when used with brms models that include a formula for modeling variance (e.g., sigma ~ cyl).

library(brms)
library(insight) #v0. 20.4

m <- brm(bf(mpg ~ hp + (1 | cyl), sigma ~ cyl),
         data = mtcars, seed = 123)
get_variance(m)  # Unexpectedly returns NULL

matschmitz avatar Sep 02 '24 12:09 matschmitz