powered by
Computes predictive distribution for number of successes of future binomial experiment with a beta prior distribution for the proportion.
pbetap(ab, n, s)
vector of predictive probabilities for the values in the vector s
vector of parameters of the beta prior
size of future binomial sample
vector of number of successes for future binomial experiment
Jim Albert
ab=c(3,12) n=10 s=0:10 pbetap(ab,n,s)
Run the code above in your browser using DataLab