powered by
Compute the Bayes factor (BF10) for a Bayesian test of two proportions.
BF10.props(a0, b0, a1, b1, a2, b2, n1, n2, x1, x2)
A list of class BFvalue_2p containing:
BFvalue_2p
type: the string "Two-proportions".
type
analysis_h0: list with a and b for the null prior.
analysis_h0
a
b
analysis_h1_theta_1: list with a and b for group 1 prior under H1.
analysis_h1_theta_1
analysis_h1_theta_2: list with a and b for group 2 prior under H1.
analysis_h1_theta_2
bf10: the computed Bayes factor (BF10).
bf10
n1, x1, n2, x2: the input sample sizes and observed successes.
n1
x1
n2
x2
OddRatio: observed odd ratio.
OddRatio
p.value: p.value.
p.value
Numeric scalar. Alpha parameter of the Beta prior under the null hypothesis.
Numeric scalar. Beta parameter of the Beta prior under the null hypothesis.
Numeric scalar. Alpha parameter of the Beta prior for group 1 under the alternative hypothesis.
Numeric scalar. Beta parameter of the Beta prior for group 1 under the alternative hypothesis.
Numeric scalar. Alpha parameter of the Beta prior for group 2 under the alternative hypothesis.
Numeric scalar. Beta parameter of the Beta prior for group 2 under the alternative hypothesis.
Numeric integer. Sample size for group 1.
Numeric integer. Sample size for group 2.
Numeric integer. Number of successes observed in group 1.
Numeric integer. Number of successes observed in group 2.
BF10.props( a0 = 1, b0 = 1, a1 = 1, b1 = 1, a2 = 1, b2 = 1, n1 = 493, n2 = 488, x1 = 155, x2 = 150)
Run the code above in your browser using DataLab