|
12 | 12 | #' @param model A mixed model. |
13 | 13 | #' @param effects Should parameters for fixed effects (`"fixed"`), random |
14 | 14 | #' effects (`"random"`), both fixed and random effects (`"all"`), or the |
15 | | -#' overall (sum of fixed and random) effects (`"total"`) be returned? Only |
16 | | -#' applies to mixed models. May be abbreviated. If the calculation of random |
17 | | -#' effects parameters takes too long, you may use `effects = "fixed"`. |
| 15 | +#' overall (sum of fixed and random) effects (`"random_total"`) be returned? |
| 16 | +#' Only applies to mixed models. May be abbreviated. If the calculation of |
| 17 | +#' random effects parameters takes too long, you may use `effects = "fixed"`. |
18 | 18 | #' @param wb_component Logical, if `TRUE` and models contains within- and |
19 | 19 | #' between-effects (see `datawizard::demean()`), the `Component` column |
20 | 20 | #' will indicate which variables belong to the within-effects, |
@@ -194,15 +194,15 @@ model_parameters.glmmTMB <- function(model, |
194 | 194 | # which components to return? |
195 | 195 | effects <- insight::validate_argument( |
196 | 196 | effects, |
197 | | - c("fixed", "random", "total", "all") |
| 197 | + c("fixed", "random", "total", "random_total", "all") |
198 | 198 | ) |
199 | 199 | component <- insight::validate_argument( |
200 | 200 | component, |
201 | 201 | c("all", "conditional", "zi", "zero_inflated", "dispersion") |
202 | 202 | ) |
203 | 203 |
|
204 | 204 | # for coef(), we don't need all the attributes and just stop here |
205 | | - if (effects == "total") { |
| 205 | + if (effects %in% c("total", "random_total")) { |
206 | 206 | params <- .group_level_total(model) |
207 | 207 | params$Effects <- "total" |
208 | 208 | class(params) <- c("parameters_coef", "see_parameters_coef", class(params)) |
|
0 commit comments