prediction.intervals: Bayesian prediction interval function
Description
Calculation of quantiles level
/2 and 1-level
/2 from predictive distribution based on distribution function Fun(x, x0, samples)
.
samples
should contain samples from the posterior distribution of the parameters.
Usage
prediction.intervals(samples, Fun, x0, level = 0.05, candArea, grid = 0.001)
Arguments
Fun
cumulative distribution function
level
level of prediction intervals
grid
fineness degree for the binary search
Value
prediction interval