Learn R Programming

BayesianTools (version 0.1.0)

getPredictiveIntervals: Calculates Bayesian credible (confidence) and predictive intervals based on parameter sample

Description

Calculates Bayesian credible (confidence) and predictive intervals based on parameter sample

Usage

getPredictiveIntervals(parMatrix, model, thin = 1000, quantiles = c(0.025,
  0.975), error = NULL)

Arguments

parMatrix
matrix of parameter values
model
model / function to calculate predictions. Outcome should be a vector
thin
thinning
quantiles
quantiles to calculate
error
function that accepts a vector as in observation. If supplied, will calculate also predictive intervals additional to credible intervals

See Also

getPredictiveDistribution getCredibleIntervals