Skip to content

Commit

Permalink
Update convert_between_d_to_r.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Dec 5, 2024
1 parent 27b90a1 commit 4371a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/convert_between_d_to_r.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ oddsratio_to_d <- function(OR, p0, log = FALSE, ...) {

odds1 <- OR * probs_to_odds(p0)
p1 <- odds_to_probs(odds1)
qnorm(p1) - qnorm(p0)
stats::qnorm(p1) - stats::qnorm(p0)
}

#' @rdname d_to_r
Expand Down

0 comments on commit 4371a7a

Please sign in to comment.