Convert P-value to Bayes Factor

as_bf(pvalue)

Arguments

pvalue

P-value.

Value

Bayes Factor (scalar value).

References

Marsman, M., & Wagenmakers, E. J. (2017). Three insights from a Bayesian interpretation of the one-sided P value. Educational and Psychological Measurement, 77(3), 529-539.

See also

[as_pvalue()] to convert Bayes factor to p-value.

Other bayesian-test: as_pvalue(), bf_compare(), bf_from_os()

Examples

# \donttest{
library(dsos)
bf_from_pvalue <- as_bf(pvalue = 0.5)
bf_from_pvalue
#> [1] 1
# }