Learn R Programming

imprecise101 (version 0.2.2.4)

dbetabinom: 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)

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.

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

Examples

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

Run the code above in your browser using DataLab