powered by
Bayesian test that a proportion is equal to a specified value using a beta prior
pbetat(p0,prob,ab,data)
value of the proportion to be tested
prior probability of the hypothesis
vector of parameter values of the beta prior under the alternative hypothesis
vector containing the number of successes and number of failures
the Bayes factor in support of the null hypothesis
the posterior probability of the null hypothesis
# NOT RUN { p0=.5 prob=.5 ab=c(10,10) data=c(5,15) pbetat(p0,prob,ab,data) # }
Run the code above in your browser using DataLab