simapply {rv} | R Documentation |
simapply
applies a given function FUN
to each row of the simulation matrix,
returning an rv object.
simapply(x, FUN, ...)
x |
a rv object |
FUN |
a function |
... |
further arguments passed to FUN |
simapply
...
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
# x <- rvnorm(10) simapply(x, mean) # Same result as that of mean(x).