getPvals {Chicago}R Documentation

Get P-values

Description

Based on a Delaporte model, calculate the P-value associated with each observation.

Usage

getPvals(cd)

Arguments

cd

A chicagoData object.

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.

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.

Author(s)

Mikhail Spivakov, Jonathan Cairns, Paula Freire Pritchett

See Also

chicagoPipeline

Examples

data(cdUnitTest)
cdUnitTest <- getPvals(cdUnitTest)

[Package Chicago version 1.10.1 Index]