Skip to contents

Tools for working with random draws from a distribution, eg draws from a posterior distribution in a Bayesian analysis.

Details

An rvec holds multiple draws, but wherever possible behaves like an ordinary R vector. For instance, if x is an rvec holding 1000 draws from a distribution, then 2 * x returns a new rvec where each draw has been multiplied by 2.

To summarise across draws, use a function starting with draws. For instance, to calculate a credible interval, use draws_ci().

Functions

Creating rvecs

Manipulating rvecs

Probability distributions

Summarizing across draws

Coercion, classes

Weighted summaries

Datasets

Packages with similar functionality

Author

Maintainer: John Bryant john@bayesiandemography.com

Other contributors:

  • Bayesian Demography Limited [copyright holder]