powered by
Calculate highest posterior density ranges of calibrated distribution
hpd(calib, prob = 0.95, return.raw = FALSE, rounded = 1)
The calibrated distribution, as returned from caldist()
Probability range which should be calculated. Default prob=0.95.
prob=0.95
The raw data to calculate hpds can be returned, e.g. to draw polygons of the calibrated distributions. Defaults to return.raw=FALSE.
return.raw=FALSE
Rounding for reported probabilities. Defaults to 1 decimal.
hpd(caldist(130,20)) plot(tmp <- caldist(2450,50), type='l') abline(v=hpd(tmp)[,1:2], col=4)
Run the code above in your browser using DataLab