parameters icon indicating copy to clipboard operation
parameters copied to clipboard

Variance of random effects is not relabelled

Open raffaem opened this issue 5 months ago • 0 comments

Bug reported upstream following https://github.com/vincentarelbundock/modelsummary/issues/895.

The variance of random effects is not relabelled:

library(magrittr)
library(glmmTMB)
mydf <- mtcars

mydf %<>% labelled::set_variable_labels(
  mpg = "Miles per gallon",
  gear = "Number of forward gears"
)

fit <- glmmTMB(cyl ~ mpg + (1 + 1 | gear), data = mydf)
p <- parameters::parameters(fit, effects = "all", pretty_names = "labels")
p$Group

attr(p, "pretty_labels")

raffaem avatar Jul 16 '25 06:07 raffaem