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 24, 2023
1 parent a3888a2 commit d818525
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 @@ -29,7 +29,7 @@ dbetabinom <- function(x, m, a, b, log = FALSE) {
assert_number(a, lower = 0, finite = TRUE)
assert_number(b, lower = 0, finite = TRUE)
logRet <- lchoose(m, x) + lbeta(x + a, m - x + b) - lbeta(a, b)
if (log == FALSE) {
if (!log) {
exp(logRet)
} else {
logRet
Expand Down

0 comments on commit d818525

Please sign in to comment.