dpredBB | R Documentation |
dpredBB returns the predictive probability of x future successes out of M trials, given s observed successes out of a sample of size N, and user input shape parameters for Beta prior on Pr(success)
dpredBB(tpred, N, t, M, alpha = 1, beta = 1)
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 observations |
M |
number of future observations (note tpred <= M) |
alpha |
first shape factor for prior Beta distribution on theta |
beta |
second shape factor for prior Beta distribution on theta |
Beta-Binomial predictive probability
1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.