Skip to content

Commit

Permalink
Update R/dbetabinom.R
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Sabanes Bove <[email protected]>
  • Loading branch information
audreyyeoCH and danielinteractive authored Aug 25, 2023
1 parent 21da90e commit 9d3aecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dbetabinom.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dbetabinom <- function(x, m, a, b, log = FALSE) {
assert_number(m, lower = 0, finite = TRUE)
assert_number(a, lower = 0, finite = TRUE)
assert_number(b, lower = 0, finite = TRUE)
assert_flag(log, na.ok = FALSE, null.ok = FALSE)
assert_flag(log)
logRet <- lchoose(m, x) + lbeta(x + a, m - x + b) - lbeta(a, b)
if (log) {
logRet
Expand Down

0 comments on commit 9d3aecf

Please sign in to comment.