rpredBB: The Beta-Binomial Predictive Distribution

View source: R/rpredBB.R

rpredBBR Documentation

The Beta-Binomial Predictive Distribution

Description

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)

Usage

rpredBB(S, N, t, M, alpha = 1, beta = 1)

Arguments

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

Value

random sample of size n from the Beta-Binomial predictive probability distribution

Examples

1

vgharris3/predictiveInference documentation built on April 23, 2022, 3:11 p.m.