getPvals {Chicago} | R Documentation |
Based on a Delaporte model, calculate the P-value associated with each observation.
getPvals(cd)
cd |
A |
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
.
An object of class chicagoData
, with new column log.p
.
The object intData(cd)
is updated by reference. Thus, intData(cd)
will be altered. See vignette for further information.
Mikhail Spivakov, Jonathan Cairns, Paula Freire Pritchett
data(cdUnitTest) cdUnitTest <- getPvals(cdUnitTest)