Skip to content

Commit 72f3ebe

Browse files
committed
Fix bin calculation bug
1 parent 8189a10 commit 72f3ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/binary-calibration.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ binary_calibration_from_bp <- function(bp, type = c("reliabilitydiag", "calibrat
7676

7777
max_sims <- max(dplyr::tally(bp_grouped)$n)
7878
attr(res, "bp") <- bp
79-
attr(res, "bins") <- max(2, min(100, max_sims / 10))
79+
attr(res, "bins") <- max(2, min(100, ceiling(max_sims / 10)))
8080
return(res)
8181
}
8282

0 commit comments

Comments
 (0)