rvsimapply

rvsimapply(x, FUN, ...)

Arguments

x

an object

FUN

an R function object

...

further arguments passed to the function FUN

Value

A numeric vector or array.

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 rvmapply instead.

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

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").

Author

Jouni Kerman jouni@kerman.com

Examples


  #