powered by
Given a vector of parameters and a scalar of the number of trials the function returns a vector of probabilities.
BBprob(twoparameter, nt)
Vector of probabilities
A vector of the parameters of the beta binomial distribution.
The number of trials.
David M. Smith <dmccsmith@verizon.net>
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.
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