Learn R Programming

BinaryEPPM (version 3.0)

CBprob: Calculation of vector of probabilities for the correlated binomial distribution.

Description

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

Usage

CBprob(twoparameter, nt)

Value

Vector of probabilities

Arguments

twoparameter

A vector of the parameters of the correlated binomial distribution.

nt

The number of trials.

Author

David M. Smith <dmccsmith@verizon.net>

References

Kupper L, Haseman J (1978). The Use of a Correlated Binomial Model for the Analysis of Toxicological Experiments. Biometrics, 34(1), 69-76.

Examples

Run this code
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