glarma
ObjectTwo plots for the non-randomized PIT are currently available for checking the distributional assumption of the fitted GLARMA model: the PIT histogram, and the uniform Q-Q plot for PIT.
histPIT(object, bins = 10, line = TRUE, colLine = "red",
colHist = "royal blue", lwdLine = 2, main = NULL, ...)
qqPIT(object, bins = 10, col1 = "red", col2 = "black",
lty1 = 1, lty2 = 2, type = "l", main = NULL, ...)
An object of class "glarma"
, obtained from a
call to glarma
.
Numeric; the number of bins shown in the PIT histogram or the PIT Q-Q plot. By default, it is 10.
Logical; if TRUE
, the line for displaying the
standard uniform distribution will be shown for the purpose of
comparison. The default is TRUE
.
Numeric or character; the colour of the line for comparison in PIT histogram.
Numeric; the line widths for the comparison line in PIT histogram.
Numeric or character; the colour of the histogram for PIT.
Numeric or character; the colour of the sample uniform Q-Q plot in PIT.
Numeric or character; the colour of the theoretical uniform Q-Q plot in PIT.
An integer or character string; the line types for the
sample uniform Q-Q plot in PIT, see par(lty = .)
.
An integer or character string; the line types for the
theoretical uniform Q-Q plot in PIT, see par(lty =
.)
.
A 1-character string; the type of plot for the sample uniform Q-Q plot in PIT.
A character string giving a title. For each plot the default provides a useful title.
Further arguments passed to plot.default
and plot.ts
.
The histogram and the Q-Q plot are used to compare the fitted profile with U(0, 1). If they match relatively well, it means the distributional assumption is satisfied.
Czado, Claudia and Gneiting, Tilmann and Held, Leonhard (2009) Predictive model assessment for count data. Biometrics, 65, 1254--1261.
Jung, Robert.C and Tremayne, A.R (2011) Useful models for time series of counts or simply wrong ones? AStA Advances in Statistical Analysis, 95, 59--91.
# NOT RUN {
## For examples see example(plot.glarma)
# }
Run the code above in your browser using DataLab