Skip to content

Commit

Permalink
don't resample when getting sigma
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jan 28, 2025
1 parent ba29334 commit d8edd37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: bayestestR
Title: Understand and Describe Bayesian Models and Posterior Distributions
Version: 0.15.1.1
Version: 0.15.1.2
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down
4 changes: 2 additions & 2 deletions R/rope_range.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ rope_range.mlm <- function(x, verbose = TRUE, ...) {
0.1 * 1
} else if (information$is_exponential) {
# Gamma models
sig <- insight::get_sigma(x)
sig <- insight::get_sigma(x, no_recursion = TRUE)
if (is.null(sig) || length(sig) == 0 || is.na(sig)) stop(call. = FALSE)
switch(information$link_function,
inverse = ,
Expand All @@ -165,7 +165,7 @@ rope_range.mlm <- function(x, verbose = TRUE, ...) {
0.05
} else if (information$is_count) {
# Not sure about this
sig <- insight::get_sigma(x)
sig <- insight::get_sigma(x, no_recursion = TRUE)
if (is.null(sig) || length(sig) == 0 || is.na(sig)) stop(call. = FALSE)
0.1 * sig
} else {
Expand Down

0 comments on commit d8edd37

Please sign in to comment.