mapply.rv
is a rv-compatible version of mapply
.
It repeats the function FUN
for each joint draw of the
random (or constant) arguments.mapply.rv(FUN, ..., MoreArgs=NULL, USE.NAMES=TRUE, SAMPLESIZE=NULL)
X
.FUN
`as is'mapply
for detailsFUN
, possibly random vectors or array.FUN
; a random vector or array if FUN
is numeric.mapply.rv
applies a given function to each
simulation (vector or array) of the given random vectors,
returning a the results as a random vector or array. Usually used in functions that implement an 'rv'-compatible routine.
For an example of a function that uses SAMPLESIZE
,
abline
.
mapply
, simapply