BBprob | R Documentation |
Given a vector of parameters and a scalar of the number of trials the function returns a vector of probabilities.
BBprob(twoparameter, nt)
twoparameter |
A vector of the parameters of the beta binomial distribution. |
nt |
The number of trials. |
Vector of probabilities
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.