powered by
Computes the posterior distribution for a proportion for a discrete prior distribution.
pdisc(p, prior, data)
vector of proportion values
vector of prior probabilities
vector consisting of number of successes and number of failures
vector of posterior probabilities
# NOT RUN { p=c(.2,.25,.3,.35) prior=c(.25,.25,.25,.25) data=c(5,10) pdisc(p,prior,data) # }
Run the code above in your browser using DataLab