Bayesian Data Analysis Using R
Bayesian Data Analysis Using R
Bayesian Data Analysis Using R
1
BAYESIAN DATA ANALYSIS USING R
Once the pre-specified number of iterations are Standard functions to plot graphical summaries
done, the sampler function returns the simulations of random variable objects are being developed. Fig-
wrapped in an object which can be coerced into a ure 3 shows the result of a statement plot(x,y)
plain matrix of simulations or to a list of random where x are constants and y is a random vector with
variable objects (see rv below), which can be then at- 10 constant components (shown as dots) and five
tached to the search path. random components (shown as intervals).
Intervals for predicted examination scores
rv
100
●
80
based random variable class in R along with various ●
●
●
60
class whose instances can be manipulated like nu-
final
meric vectors and arrays. However, each element ●
40
tions: the rv objects can thus be thought of being ap-
proximations of random variables. That is, a random
20
scalar is stored internally as a vector, a random vector
as a matrix, a random matrix as a three-dimensional
array, and so forth. The random variable objects are
0
2
BIBLIOGRAPHY BIBLIOGRAPHY