dppois: Stable evaluation of difference between Poisson c.d.f.s
Description
Evaluates the difference between two Poisson cumulative distribution functions avoiding cancellation error.
Usage
dppois(y0,y1,mu,log.p=TRUE)
Arguments
Details
Equivalent to log(ppois(y1,mu)-ppois(y0,mu)), but stable when y0 and y1 are highly improbable and in the same tail of the distribution (avoids cancellation to log(0)).