Skip to content

Commit

Permalink
add missing sd to parameter sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Nov 27, 2023
1 parent 6c63012 commit acf4770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ fix_dist <- function(x, strategy = c("mean", "sample")) {
} else if (strategy == "sample") {
lower_bound <- lower_bounds(x$dist)[natural_params(x$dist)]
mean <- rtruncnorm(
n = 1, a = lower_bound, mean = x$params_mean
n = 1, a = lower_bound, mean = x$params_mean, sd = x$params_sd
)
x <- .dist_spec(
params_mean = mean,
Expand Down

0 comments on commit acf4770

Please sign in to comment.