dpredBB: The Beta-Binomial Predictive Distribution

View source: R/dpredBB.R

dpredBBR Documentation

The Beta-Binomial Predictive Distribution

Description

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)

Usage

dpredBB(tpred, N, t, M, alpha = 1, beta = 1)

Arguments

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

Value

Beta-Binomial predictive probability

Examples

1

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