Simple uncalibrated prediction intervals for quasi-Poisson data
Simple uncalibrated prediction intervals for quasi-Poisson data
qp_pi() is a helper function that is internally called by quasi_pois_pi(). It calculates simple uncalibrated prediction intervals for Poisson data with constant overdispersion (quasi-Poisson assumption).
newoffset: number of experimental units in the future clusters
histoffset: number of experimental units in the historical clusters
lambda: overall Poisson mean
phi: dispersion parameter
q: quantile used for interval calculation
alternative: either "both", "upper" or "lower" alternative specifies, if a prediction interval or an upper or a lower prediction limit should be computed
newdat: additional argument to specify the current data set
histdat: additional argument to specify the historical data set
algorithm: used to define the algorithm for calibration if called via quasi_pois_pi(). This argument is not of interest for the calculation of simple uncalibrated intervals
Returns
qp_pi returns an object of class c("predint", "quasiPoissonPI").
Details
This function returns a simple uncalibrated prediction interval
[l,u]m=nm∗λ^±qnm∗ϕ^λ^+∑hnhnm∗2ϕ^λ^
with nm∗ as the number of experimental units in the m=1,2,...,M future clusters, λ^ as the estimate for the Poisson mean obtained from the historical data, ϕ^ as the estimate for the dispersion parameter and nh as the number of experimental units per historical cluster.
The direct application of this uncalibrated prediction interval to real life data is not recommended. Please use the quasi_pois_pi_pi() functions for real life applications.