Skip to content
Prev 20495 / 20628 Next

glmmTMB syntax to brm() syntax

On 2024-10-28 7:43 p.m., Simon Harmel wrote:
Saving that last model as g1,

log(sqrt(c(VarCorr(g1)$cond[[1]])))

or if you like tidyverse

library(tidyverse)

broom.mixed::tidy(g1, effects = "ran_pars")
    |> filter(term == "sd__(Intercept)")
    |> pull(estimate)
    |> log()

  These both give -1.155614, which seems reasonably close.