Home > Research > Random Variable Objects in R

Random variable objects

Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. by Jouni Kerman and Andrew Gelman.

Abstract of the paper:

Practical Bayesian data analysis involves manipulating and summarizing simulations from the posterior distribution of the unknonwn parameters. By manipulation we mean computing posterior distributions of functions of the unknowns, and generating posterior predictive distributions. The results need to be summarized both numerically and graphically.

We introduce, and implement in R, an object-oriented programming paradigm based on a random variable object type that is implicitly represented by simulations. This makes it possible to define vector and array objects that may contain both random and deterministic quantities, and syntax rules that allow treating these objects like any numeric vectors or arrays, providing a solution to various problems encountered in Bayesian computing involving posterior simulations.

We illustrate the use of this new programming environment with examples of Bayesian computing, demonstrating missing-value imputation, nonlinear summary of regression predictions, and posterior predictive checking.

See the rightmost column for links to the software.


Mon Feb 27 14:02:28 2006

Papers and documentation

Software