| p_to_bf | R Documentation |
Convert p values to approximate (pseudo) Bayes Factors (PseudoBF10). This transformation has been suggested by Wagenmakers (2022).
p_to_bf(p, n, log = FALSE, label = FALSE)
p |
p value(s). |
n |
Number of observations. |
log |
Return |
label |
Add labels (i.e., names) to returned values. Defaults to |
A (named) numeric vector of pseudo Bayes Factors (\text{PseudoBF}_{10}).
Wagenmakers, E.-J. (2022). Approximate objective Bayes factors from p-values and sample size: The 3p\sqrt{n} rule. PsyArXiv.
\Sexpr[results=rd]{tools:::Rd_expr_doi("10.31234/osf.io/egydq")}
bayestestR::p_to_bf()
p_to_bf(0.05, 100)
p_to_bf(c(0.01, 0.05), 100)
p_to_bf(c(0.001, 0.01, 0.05, 0.1), 100, label=TRUE)
p_to_bf(c(0.001, 0.01, 0.05, 0.1), 1000, label=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.