powered by
Computes predictive distribution for number of successes of future binomial experiment with a discrete distribution for the proportion.
pdiscp(p, probs, n, s)
vector of proportion values
vector of probabilities
size of future binomial sample
vector of number of successes for future binomial experiment
vector of predictive probabilities for the values in the vector s
# NOT RUN { p=c(.1,.2,.3,.4,.5,.6,.7,.8,.9) prob=c(0.05,0.10,0.10,0.15,0.20,0.15,0.10,0.10,0.05) n=10 s=0:10 pdiscp(p,prob,n,s) # }
Run the code above in your browser using DataLab