R/calculateProb.R

Defines functions calculateProb

Documented in calculateProb

calculateProb <-
function(p, r, x){return(exp(lgamma(r+x)-lgamma(x+1)-lgamma(r)+x*log(p)+r*log(1-p)))}

Try the CNOGpro package in your browser

Any scripts or data that you put into this service are public.

CNOGpro documentation built on May 2, 2019, 5:57 a.m.