Description Usage Arguments Value Author(s) Examples
Bayesian test that a proportion is equal to a specified value using a beta prior
1 |
p0 |
value of the proportion to be tested |
prob |
prior probability of the hypothesis |
ab |
vector of parameter values of the beta prior under the alternative hypothesis |
data |
vector containing the number of successes and number of failures |
bf |
the Bayes factor in support of the null hypothesis |
post |
the posterior probability of the null hypothesis |
Jim Albert
1 2 3 4 5 |
$bf
[1] 0.3893163
$post
[1] 0.2802215
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.