Skip to content

Commit e4a9647

Browse files
committed
minor
1 parent e6e853b commit e4a9647

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: parameters
33
Title: Processing of Model Parameters
4-
Version: 0.24.2.18
4+
Version: 0.24.2.19
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",

R/methods_brms.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@ model_parameters.brmsfit <- function(model,
122122
class(params) <- c("parameters_coef", "see_parameters_coef", class(params))
123123
return(params)
124124
} else {
125+
126+
## TODO: remove this once insight > 1.2.0 is on CRAN
127+
if (utils::packageVersion("insight") > "1.2.0" && effects == "random") {
128+
if (group_level) {
129+
effects <- "grouplevel"
130+
} else {
131+
effects <- "random_variance"
132+
}
133+
}
134+
125135
# Processing
126136
params <- .extract_parameters_bayesian(
127137
model,
@@ -144,6 +154,8 @@ model_parameters.brmsfit <- function(model,
144154
...
145155
)
146156

157+
## TODO: remove this once insight > 1.2.0 on CRAN
158+
147159
# if random effects are included, check if group-level estimates
148160
# should be returned or not. If not, remove them.
149161
if (effects != "fixed") {

0 commit comments

Comments
 (0)