Learn R Programming

Chicago (version 1.0.3)

getPvals: 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.

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.

See Also

chicagoPipeline

Examples

Run this code
data(cdUnitTest)
cdUnitTest <- getPvals(cdUnitTest)

Run the code above in your browser using DataLab