This function returns bootstrap-calibrated prediction intervals as well as
lower or upper prediction limits.
If algorithm
is set to "MS22", both limits of the prediction interval
are calibrated simultaneously using the algorithm described in Menssen and
Schaarschmidt (2022), section 3.2.4. The calibrated prediction interval is given
as
$$[l,u]_m = n^*_m \hat{\lambda} \pm q \sqrt{n^*_m
\frac{\hat{\lambda} + \hat{\kappa} \bar{n} \hat{\lambda}}{\bar{n} H} +
(n^*_m \hat{\lambda} + \hat{\kappa} n^{*2}_m \hat{\lambda}^2)
}$$
with \(n^*_m\) as the number of experimental units in the future clusters,
\(\hat{\lambda}\) as the estimate for the Poisson mean obtained from the
historical data, \(\hat{\kappa}\) as the estimate for the dispersion parameter,
\(n_h\) as the number of experimental units per historical cluster and
\(\bar{n}=\sum_h^{n_h} n_h / H\).
If algorithm
is set to "MS22mod", both limits of the prediction interval
are calibrated independently from each other. The resulting prediction interval
is given by
$$[l,u] = \Big[n^*_m \hat{\lambda} - q^{calib}_l \sqrt{n^*_m
\frac{\hat{\lambda} + \hat{\kappa} \bar{n} \hat{\lambda}}{\bar{n} H} +
(n^*_m \hat{\lambda} + \hat{\kappa} n^{*2}_m \hat{\lambda}^2)}, \quad
n^*_m \hat{\lambda} + q^{calib}_u \sqrt{n^*_m
\frac{\hat{\lambda} + \hat{\kappa} \bar{n} \hat{\lambda}}{\bar{n} H} +
(n^*_m \hat{\lambda} + \hat{\kappa} n^{*2}_m \hat{\lambda}^2)
} \Big]$$
Please note, that this modification does not affect the calibration procedure, if only
prediction limits are of interest.