File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11Type: Package
22Package: parameters
33Title: Processing of Model Parameters
4- Version: 0.24.2.18
4+ Version: 0.24.2.19
55Authors@R:
66 c(person(given = "Daniel",
77 family = "Lüdecke",
Original file line number Diff line number Diff 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" ) {
You can’t perform that action at this time.
0 commit comments