Posterior distribution for a proportion with discrete priors
Computes the posterior distribution for a proportion for a discrete prior distribution.
pdisc(p, prior, data)
p |
vector of proportion values |
prior |
vector of prior probabilities |
data |
vector consisting of number of successes and number of failures |
vector of posterior probabilities
Jim Albert
p=c(.2,.25,.3,.35) prior=c(.25,.25,.25,.25) data=c(5,10) pdisc(p,prior,data)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.