rpredBB | R Documentation |
rpredBB returns a random sample of size n from the Beta-Binomial predictive probability distribution computed from s observed successes out of a sample of size N, M future observations, and user input shape parameters for Beta prior on Pr(success)
rpredBB(S, N, t, M, alpha = 1, beta = 1)
S |
desired random sample size |
N |
number of observed independent binary variables |
t |
number of observed successes out of N observations |
M |
number of future observations for which prediction is desired |
alpha |
shape factor for prior Beta distribution on theta |
beta |
rate factor for prior Beta distribution on theta |
random sample of size n from the Beta-Binomial predictive probability distribution
1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.