ppredBB | R Documentation |
ppredBB returns the predictive probability of <= x future successes out of M trials, given s observed successes out of a sample of
ppredBB(tpred, N, t, M, alpha = 1, beta = 1, lower = TRUE)
tpred |
vector of integers: number(s) of successes for which prediction is desired |
N |
number of observed independent binary variables |
t |
number of observed successes out of N |
M |
number of future observations for which prediction is desired (note x <= M) |
alpha |
shape factors for prior Beta distribution on theta |
beta |
rate factor for prior Beta distribution on theta |
lower |
logical; if TRUE (default), probabilities are P(R<=q) otherwise P(R>q) |
Beta-Binomial cumulative predictive probability
1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.