Learn R Programming

BinaryEPPM (version 3.0)

BBprob: Calculation of vector of probabilities for the beta binomial distribution.

Description

Given a vector of parameters and a scalar of the number of trials the function returns a vector of probabilities.

Usage

BBprob(twoparameter, nt)

Value

Vector of probabilities

Arguments

twoparameter

A vector of the parameters of the beta binomial distribution.

nt

The number of trials.

Author

David M. Smith <dmccsmith@verizon.net>

References

Smith D (1982). Algorithm AS189. Maximum Likelihood Estimation of the Parameters of the Beta Binomial Distribution. Applied Statistics, 32, 196-204.

Williams D (1996). "Overdispersion in Logistic Linear Models." In B Mrgan (ed.), Statistics in Toxicology, pp75-84. Oxford Science Publications.

Examples

Run this code
twoparameter <- c(0.96477815,0.7561417)
names(twoparameter) <- c('p','theta')
nt <- 37
BBprob(twoparameter,nt)

Run the code above in your browser using DataLab