getPvals: Get P-values

Description Usage Arguments Details Value Warning Author(s) See Also Examples

View source: R/chicago.R

Description

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

Usage

1

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

1
2

Chicago documentation built on Nov. 8, 2020, 8:15 p.m.