Skip to content

Commit

Permalink
Merge pull request #383 from stan-dev/fix_pareto_khat
Browse files Browse the repository at this point in the history
fix use of ceiling in ps_tail_length
  • Loading branch information
paul-buerkner authored Nov 7, 2024
2 parents 90a07cc + dd9f71e commit 4166286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pareto_smooth.R
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ ps_convergence_rate <- function(k, ndraws, ...) {
#' @return tail length
#' @export
ps_tail_length <- function(ndraws, r_eff, ...) {
ifelse(ndraws > 225, ceiling(3 * sqrt(ndraws / r_eff)), ndraws / 5)
ceiling(ifelse(ndraws > 225, 3 * sqrt(ndraws / r_eff), ndraws / 5))
}

#' Pareto-k diagnostic message
Expand Down

0 comments on commit 4166286

Please sign in to comment.