powered by
Plots JAB as a function of the p-value
JAB_plot(n, BF = 1, method = "JAB")
Prints a plot.
Sample size
Bayes factor you would like to match. 1 to avoid the Lindley Paradox, 3 to achieve moderate evidence and 10 to achieve strong evidence.
Used for the choice of 'b'. Currently one of:
"JAB": this choice of b produces Jeffery's approximate BF
"min": uses the minimal training sample for the prior (Gu et al., '17)
"robust": a robust version of "min" that prevents too small b (O'Hagan, '95)
"balanced": this choice of b balances the type I and type II errors
# Plot JAB as function of the p-value for a sample size of 2000 JAB_plot(2000)
Run the code above in your browser using DataLab