Skip to content

Commit 20b4455

Browse files
committed
...
1 parent 17f9393 commit 20b4455

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/methods_glmmTMB.R

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

231231
# initialize
232-
params <- NULL
232+
params <- att <- NULL
233233

234234
if (effects %in% c("fixed", "all")) {
235235
# Processing
@@ -279,9 +279,9 @@ model_parameters.glmmTMB <- function(model,
279279
params <- .exponentiate_parameters(params, model, exponentiate)
280280

281281
params$Effects <- "fixed"
282+
att <- attributes(params)
282283
}
283284

284-
att <- attributes(params)
285285

286286
# add random effects, either group level or re variances
287287
params <- .add_random_effects_glmmTMB(
@@ -306,7 +306,6 @@ model_parameters.glmmTMB <- function(model,
306306
params <- .filter_parameters(params, keep, drop, verbose = verbose)
307307
}
308308

309-
310309
# due to rbind(), we lose attributes from "extract_parameters()",
311310
# so we add those attributes back here...
312311
if (!is.null(att)) {

0 commit comments

Comments
 (0)