powered by
Given a vector of parameters and a scalar of the number of trials the function returns a vector of probabilities.
CBprob(twoparameter, nt)
Vector of probabilities
A vector of the parameters of the correlated binomial distribution.
The number of trials.
David M. Smith <dmccsmith@verizon.net>
Kupper L, Haseman J (1978). The Use of a Correlated Binomial Model for the Analysis of Toxicological Experiments. Biometrics, 34(1), 69-76.
twoparameter <- c(0.971242852,0.001465007) names(twoparameter) <- c('p','rho') nt <- 37 CBprob(twoparameter,nt)
Run the code above in your browser using DataLab