Description Usage Arguments Details Value References Examples
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).
1 2 3 | izipPredProb(object)
izipPIT(object, bins = 10)
|
object |
an object class "izip", obtained from a call to |
bins |
numeric; the number of bins shown in the PIT histogram or the PIT Q-Q plot. |
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).
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. |
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.
1 2 3 4 | data(bioChemists)
M_bioChem <- glm.izip(art ~ ., data = bioChemists)
izipPredProb(M_bioChem)
izipPIT(M_bioChem)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.