nrPIT: Non-randomized Probability Integral Transform

Description Usage Arguments Details Value References Examples

Description

Functions to produce the non-randomized probability integral transform (PIT) to check the adequacy of the distributional assumption of the iZIP model. The majority of the code and descriptions are taken from Dunsmuir and Scott (2015).

Usage

1
2
3
izipPredProb(object)

izipPIT(object, bins = 10)

Arguments

object

an object class "izip", obtained from a call to glm.izip.

bins

numeric; the number of bins shown in the PIT histogram or the PIT Q-Q plot.

Details

These functions are used to obtain the predictive probabilities and the probability integral transform for a fitted izip model. The majority of the code and descriptions are taken from Dunsmuir and Scott (2015).

Value

izipPredProb returns a list with values:

upper

the predictive cumulative probabilities used as the upper bound for computing the non-randomized PIT.

lower

the predictive cumulative probabilities used as the upper bound for computing the non-randomized PIT.

izipPIT returns a list with values:

conditionalPIT

the conditional probability integral transformation given the observed counts.

PIT

the probability integral transformation.

References

Czado, C., Gneiting, T. and Held, L. (2009). Predictive model assessment for count data. Biometrics, 65, 1254–1261.

Dunsmuir, W.T.M. and Scott, D.J. (2015). The glarma Package for Observation-Driven Time Series Regression of Counts. Journal of Statistical Software, 67, 1–36.

Examples

1
2
3
4
data(bioChemists)
M_bioChem <- glm.izip(art ~ ., data = bioChemists)
izipPredProb(M_bioChem)
izipPIT(M_bioChem)

thomas-fung/izipr documentation built on Dec. 23, 2021, 9:57 a.m.