1 2 3
an rv object
a logical rv object
rvmean computes the means of the simulations
of all individual components of a random vector (rv) object.
E is an alias for
rvmean, standing for “Expectation.”
Pr is another alias for
rvmean, standing for “Probability of”;
suggested to be used when the argument is a logical statement involving random variables
(that is, a description of an event such as
Pr(x>0) gives the probability of the event “x>0”.
x>0 returns a Bernoulli
(indicator) random variable object (having 1/0 or TRUE/FALSE values)
and the expectation of such variable is just the probability of the
event where the indicator is one.
A numerical vector with the same dimension as
Jouni Kerman email@example.com
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.