betabinom: Beta-Binomial Distribution

dbetabinomR Documentation

Beta-Binomial Distribution

Description

This function computes the predictive posterior density of the outcome of interest under the imprecise Dirichlet prior distribution. It follows a beta-binomial distribution.

Usage

dbetabinom(i, M, x, s, N, tA)

pbetabinom(M, x, s, N, y)

Arguments

i

number of occurrences of event A in the M future trials

M

number of future trials

x

number of occurrence of event A in the N previous trials

s

learning parameter

N

total number of previous trials

tA

prior probability of event A under the Dirichlet prior

y

maximum number of occurrences of event A in the M future trials

Value

dbetabinom returns a scalar value of density and pdetabinom returns a list of scalars corresponding to the lower and upper probabilities of the distribution.

Examples

pbetabinom(M=6, x=1, s=1, N=6, y=0)

imprecise101 documentation built on Feb. 16, 2023, 6:08 p.m.