betabinomial {lestat} | R Documentation |
Create an Object Representing a Beta-Binomial Distribution
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
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
dist <- betabinomial(10, 5.5, 3.3)
cdf(dist, 3)
[Package lestat version 1.9 Index]