betabinomial: Create an Object Representing a Beta-Binomial Distribution

Description Usage Arguments Value Author(s) See Also Examples

Description

Create an object representing a Beta-Binomial distribution. This can be used for a Binomial distribution where there is uncertainty about the probability of success, and this uncertainty is represented by a Beta distribution.

Usage

1
betabinomial(n, alpha, beta)

Arguments

n

the number of trials in the binomial distribution (a positive integer).

alpha

the alpha parameter of the underlying Beta distribution.

beta

the beta parameter of the underlying Beta distribution.

Value

An object of class "betabinomial" and class "probabilitydistribution".

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

betadistribution, binomialdistribution, binomialbeta

Examples

1
2
dist <- betabinomial(10, 5.5, 3.3)
cdf(dist, 3) 

lestat documentation built on May 2, 2019, 2:09 p.m.