rvsimapply {rv}R Documentation

Apply a Function to Columns of the Matrix of Simulation of a Random Vector

Description

rvsimapply

Usage

rvsimapply(x, FUN, ...)

Arguments

x an object
FUN
... further arguments passed to the function FUN

Details

rvsimapply applies a given function to the rows of the simulation matrix of the given random vector.

If the function is to be applied to rows of the simulation matrix, use simapply or mapply.rv instead.

Usually used in functions that implement an 'rv'-compatible routine.

Value

A numeric vector or array.

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

  #

[Package rv version 0.949 Index]