Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 8, 2021
1 parent 7d1f423 commit 7253d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/methods_brms.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ model_parameters.brmsfit <- function(model,
)

if (!(effects == "fixed" && component == "conditional")) {
random_effect_levels <- which(params$Effects %in% "random" & grepl("^(?!sd_|cor_)(.*)", params$Parameter, perl = TRUE))
random_effect_levels <- which(params$Effects == "random" & grepl("^(?!sd_|cor_)(.*)", params$Parameter, perl = TRUE) & !(params$Parameter %in% c("car", "sdcar")))
if (length(random_effect_levels) && isFALSE(group_level)) params <- params[-random_effect_levels, ]
}

Expand Down

0 comments on commit 7253d35

Please sign in to comment.