ppredBB: The Beta-Binomial Predictive Distribution

View source: R/ppredBB.R

ppredBBR Documentation

The Beta-Binomial Predictive Distribution

Description

ppredBB returns the predictive probability of <= x future successes out of M trials, given s observed successes out of a sample of

Usage

ppredBB(tpred, N, t, M, alpha = 1, beta = 1, lower = TRUE)

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

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)

Value

Beta-Binomial cumulative predictive probability

Examples

1

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