Skip to content

Commit

Permalink
fix issue with log in dSDT
Browse files Browse the repository at this point in the history
  • Loading branch information
venpopov committed Feb 28, 2024
1 parent 1b9cfeb commit eeac04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ dSDT <- function(x, size, dprime = 1, crit = dprime/2, stimulus = 1, dist_noise
probs <- stats::plogis(acts)
}

density <- stats::dbinom(x, size = size, prob = probs, log = log)
density <- stats::dbinom(x, size = size, prob = probs, log = TRUE)

if (!log) {
return(exp(density))
Expand Down

0 comments on commit eeac04e

Please sign in to comment.