Based on a Delaporte model, calculate the P-value associated with each observation.
Usage
getPvals(cd)
Arguments
cd
A chicagoData object.
Value
An object of class chicagoData, with new column log.p.
Warning
The object intData(cd) is updated by reference. Thus, intData(cd) will be altered. See vignette for further information.
Details
The parameters for the Delaporte distribution are obtained as follows: the NB mean from the column intData(cd)$Bmean, the Poisson mean from the column intData(cd)$Tmean, and the dispersion from params(cd)$dispersion.