p2BF function

Conversion of a frequentist p-value to the lower bound of the Bayes factor against the null hypothesis assuming equal odds of the null and the alternative

Conversion of a frequentist p-value to the lower bound of the Bayes factor against the null hypothesis assuming equal odds of the null and the alternative

This function computes the approximate lower bound to the Bayes factor of the null hypothesis against the alternative, assuming equal odds of the null and the alternatlve.

Note

the p-value should be less than 1/e (= 0.37).

p2BF(p)

Arguments

  • p: the frequentist p-value (which has to be less than 1/e or 0.37)

Returns

the approximate lower bound of the Bayes factor of the null hypothesis against the alternative

References

Sellke, T., Bayarri, M.J., and Berger, J.O. 2001. Calibration of p Values for Testing Precise Hypotheses. Am. Statistician 55(1) pp 62--71.

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

Author(s)

Robert van Hulst

See Also

p2minpp

Examples

p2BF(p = 0.05)
  • Maintainer: Robert van Hulst
  • License: GPL (>= 2)
  • Last published: 2018-05-15

Useful links