From 4371a7a7f8f93a6f3ff9d8b3f017bbd22813febb Mon Sep 17 00:00:00 2001 From: "Mattan S. Ben-Shachar" Date: Thu, 5 Dec 2024 12:28:33 +0200 Subject: [PATCH] Update convert_between_d_to_r.R --- R/convert_between_d_to_r.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/convert_between_d_to_r.R b/R/convert_between_d_to_r.R index b854e3bc..6217e3ec 100644 --- a/R/convert_between_d_to_r.R +++ b/R/convert_between_d_to_r.R @@ -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