powered by
Calculate the Bayes factor (BF10) for a test of a single proportion, either against a point null or an interval null hypothesis.
BF10.bin.test(x, n, alpha, beta, location, scale, model, hypothesis, e = NULL)
The Bayes factor (BF10) for the one-proportion test.
Observed number of successes.
Sample size.
Parameter for the analysis beta prior under the alternative hypothesis.
Null proportion value.
Scale parameter for the analysis prior (if applicable, e.g., for Moment prior).
Statistical model of the analysis prior under the alternative hypothesis: beta prior ("beta") or Moment prior ("Moment").
"beta"
"Moment"
The hypothesis being tested: two-sided ("!="), right-sided (">"), or left-sided ("<").
"!="
">"
"<"
Optional numeric vector specifying bounds for an interval null; used if interval BF is calculated.
BF10.bin.test( x = 12, n = 50, alpha = 2, beta = 3, location = 0.5, scale = 1, model = "beta", hypothesis = "!=" )
Run the code above in your browser using DataLab