bbolker / broom.mixed

tidy methods for mixed models in R
229 stars 23 forks source link

`component` argument fails for random effects #33

Closed strengejacke closed 5 years ago

strengejacke commented 6 years ago
library(glmmTMB)
library(broom.mixed)

m1 <- glmmTMB(count~ mined + (1|site), 
              zi=~mined, 
              family=poisson, data=Salamanders)

broom.mixed::tidy(m1, effects = "ran_pars", component = "cond")
#> # A tibble: 1 x 5
#>   effect   component group term            estimate
#>   <chr>    <chr>     <chr> <chr>              <dbl>
#> 1 ran_pars cond      site  sd__(Intercept)    0.280

broom.mixed::tidy(m1, effects = "ran_pars", component = "zi")
#> Error: Columns `var1`, `var2` not found

Created on 2018-10-04 by the reprex package (v0.2.1)

bbolker commented 5 years ago

fixed in 40fddc7e7