File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
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.17
4+ Version: 0.24.2.18
55Authors@R:
66 c(person(given = "Daniel",
77 family = "Lüdecke",
Original file line number Diff line number Diff line change 108108 random_slopes <- insight :: find_random_slopes(x )
109109 params <- NULL
110110
111+ # extract coefficients - only once, not in the loop
112+ model_coefficients <- stats :: coef(x , summary = FALSE )
113+
111114 # create full data frame of all random effects retrieved from coef()
112115 params <- do.call(
113116 rbind ,
114117 lapply(group_factors , function (i ) {
115118 # we want the posterior distribution from coef(), so we can
116119 # use bayestestR
117- ranef <- stats :: coef( x , summary = FALSE ) [[i ]]
120+ ranef <- model_coefficients [[i ]]
118121 parameter_names <- dimnames(ranef )[[3 ]]
119122 out <- lapply(
120123 parameter_names ,
You can’t perform that action at this time.
0 commit comments