Skip to content

Commit 17f9393

Browse files
committed
simplify
1 parent 0d45949 commit 17f9393

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

R/methods_glmmTMB.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ model_parameters.glmmTMB <- function(model,
229229
}
230230

231231
# initialize
232-
params <- params_random <- params_variance <- NULL
232+
params <- NULL
233233

234234
if (effects %in% c("fixed", "all")) {
235235
# Processing
@@ -287,8 +287,6 @@ model_parameters.glmmTMB <- function(model,
287287
params <- .add_random_effects_glmmTMB(
288288
model,
289289
params,
290-
params_random,
291-
params_variance,
292290
ci,
293291
ci_method,
294292
ci_random,
@@ -388,15 +386,14 @@ model_parameters.glmmTMB <- function(model,
388386
# dispersion parameter, if present in random effects
389387
.add_random_effects_glmmTMB <- function(model,
390388
params,
391-
params_random,
392-
params_variance,
393389
ci,
394390
ci_method,
395391
ci_random,
396392
effects,
397393
component,
398394
dispersion_param,
399395
group_level) {
396+
params_random <- params_variance <- NULL
400397
random_effects <- insight::find_random(model, flatten = TRUE)
401398

402399
if (!is.null(random_effects) && effects %in% c("random", "all")) {

0 commit comments

Comments
 (0)