y_star_hat: a list of length B that contains the expected future observations. Each entry in this list has to be a numeric vector of length M.
pred_se: a list of length B that contains the standard errors of the prediction. Each entry in this list has to be a numeric vector of length M.
y_star: a list of length B that contains the future observations. Each entry in this list has to be a numeric vector of length M.
alternative: either "both", "upper" or "lower". alternative specifies if a prediction interval or an upper or a lower prediction limit should be computed
quant_min: lower start value for bisection
quant_max: upper start value for bisection
n_bisec: maximal number of bisection steps
tol: tolerance for the coverage probability in the bisection
alpha: defines the level of confidence (1−α)
traceplot: if TRUE: Plot for visualization of the bisection process
Returns
This function returns qcalib in the equation above.
Details
This function is an implementation of the bisection algorithm of Menssen and Schaarschmidt 2022. It returns a calibrated coefficient qcalib for the calculation of pointwise and simultaneous prediction intervals
[l,u]=y^m∗±qcalibse^(Ym−ym∗),
lower prediction limits
l=y^m∗−qcalibse^(Ym−ym∗)
or upper prediction limits
u=y^m∗+qcalibse^(Ym−ym∗)
that cover all of m=1,...,M future observations.
In this notation, y^m∗ are the expected future observations for each of the m future clusters, qcalib is the calibrated coefficient and se^(Ym−ym∗)
are the standard errors of the prediction.
References
Menssen and Schaarschmidt (2022): Prediction intervals for all of M future observations based on linear random effects models. Statistica Neerlandica.