rowapply: Apply a Function to Rows of a Random Matrix
Description
rowapply takes a random matrix and applies a function
to its rows, returning another rv object.
Usage
rowapply(X, FUN, ...)
Arguments
X
random matrix (an rv object with non-null dimension)
FUN
a function to apply
...
further arguments passed to FUN
Value
A random variable (an rv object).
References
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.