From 1638bc24513f29a9e4a27ca7cdfc972dbb453610 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 4 Sep 2024 16:07:59 +0200 Subject: [PATCH] fix formula --- R/p_direction.R | 2 +- man/p_direction.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/p_direction.R b/R/p_direction.R index ecfce52c1..a733e9339 100644 --- a/R/p_direction.R +++ b/R/p_direction.R @@ -41,7 +41,7 @@ #' #' In most cases, it seems that the *pd* has a direct correspondence with the #' frequentist one-sided *p*-value through the formula (for two-sided *p*): -#' \deqn{p = 2 \times (1 - p_d)}{p = 2 * (1 - pd)} +#' \ifelse{html}{\out{p = 2 * (1 - pd)}}{\eqn{p = 2 \times (1 - p_d)}} #' Thus, a two-sided p-value of respectively `.1`, `.05`, `.01` and `.001` would #' correspond approximately to a *pd* of `95%`, `97.5%`, `99.5%` and `99.95%`. #' See [pd_to_p()] for details. diff --git a/man/p_direction.Rd b/man/p_direction.Rd index 488371e1f..a3b8941f1 100644 --- a/man/p_direction.Rd +++ b/man/p_direction.Rd @@ -180,7 +180,7 @@ with Bayesian statistics (Makowski et al., 2019). In most cases, it seems that the \emph{pd} has a direct correspondence with the frequentist one-sided \emph{p}-value through the formula (for two-sided \emph{p}): -\deqn{p = 2 \times (1 - p_d)}{p = 2 * (1 - pd)} +\ifelse{html}{\out{p = 2 * (1 - pd)}}{\eqn{p = 2 \times (1 - p_d)}} Thus, a two-sided p-value of respectively \code{.1}, \code{.05}, \code{.01} and \code{.001} would correspond approximately to a \emph{pd} of \verb{95\%}, \verb{97.5\%}, \verb{99.5\%} and \verb{99.95\%}. See \code{\link[=pd_to_p]{pd_to_p()}} for details.