prediction.intervals: Bayesian prediction interval function

Description Usage Arguments Value

View source: R/predict.R

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

1
prediction.intervals(samples, Fun, x0, level = 0.05, candArea, grid = 0.001)

Arguments

samples

posterior samples

Fun

cumulative distribution function

x0

starting point

level

level of prediction intervals

candArea

candidate area

grid

fineness degree for the binary search

Value

prediction interval


SimoneHermann/BaPreStoPro documentation built on May 10, 2017, 1:42 p.m.