Skip to content

Commit 2cf47fd

Browse files
committed
minor
1 parent 931ecde commit 2cf47fd

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ BugReports: https://github.com/easystats/performance/issues
7373
Depends:
7474
R (>= 3.6)
7575
Imports:
76-
bayestestR (>= 0.15.3),
77-
insight (>= 1.2.0),
76+
bayestestR (>= 0.16.0),
77+
insight (>= 1.3.0),
7878
datawizard (>= 1.0.2),
7979
stats,
8080
methods,
@@ -133,7 +133,7 @@ Suggests:
133133
nonnest2,
134134
ordinal,
135135
parallel,
136-
parameters (>= 0.22.0),
136+
parameters (>= 0.26.0),
137137
patchwork,
138138
pscl,
139139
psych,

R/performance_reliability.R

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#'
33
#' @description These functions provide information about the reliability of
44
#' group-level estimates (i.e., random effects) in mixed models. They are useful
5-
#' to assess whether there the predictors yield consistent group-level
6-
#' variability. "Group-level" can refer, for instance, to different participants
7-
#' in a study, and the predictors to the effect of some experimental condition.
5+
#' to assess whether the predictors yield consistent group-level variability.
6+
#' "Group-level" can refer, for instance, to different participants in a study,
7+
#' and the predictors to the effect of some experimental condition.
88
#'
99
#' The conceptually related functions are implemented,
1010
#' `performance_reliability()`, based on Rouder & Mehrvarz (2024) that uses
@@ -144,11 +144,7 @@ performance_reliability.default <- function(x, ...) {
144144
random <- lapply(insight::get_random(x), function(z) min(table(z)))
145145
v <- insight::get_variance(x) # Extract variance components
146146

147-
original_params <- parameters::parameters(
148-
x,
149-
effects = "random",
150-
group_level = TRUE
151-
)
147+
original_params <- parameters::parameters(x, effects = "grouplevel", verbose = FALSE)
152148
params <- as.data.frame(original_params)
153149

154150
# bayesian model? if yes, copy clean parameter names
@@ -169,7 +165,6 @@ performance_reliability.default <- function(x, ...) {
169165
Parameter = param
170166
)
171167

172-
173168
# Based on Rouder's (2024) paper https://journals.sagepub.com/doi/10.1177/09637214231220923
174169
# "What part of reliability is invariant to trial size? Consider the ratio
175170
# sigma_B^2 / sigma_W^2. This is a signal-to-noise variance ratio - it is
@@ -204,12 +199,8 @@ performance_reliability.default <- function(x, ...) {
204199
}
205200
}
206201

207-
# clean for brms
208-
if (inherits(x, "brmsfit")) {
209-
reliability <- reliability[!is.na(reliability$Reliability), ]
210-
}
211-
212-
reliability
202+
# clean
203+
reliability[!is.na(reliability$Reliability), ]
213204
}
214205

215206

man/performance_reliability.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)