mcparam.sample.RdOptionally, apply a function to the sampled values.
mcparam.sample(mc.data, nsamp = 100, func = NULL)
| mc.data | Data frame of Monte Carlo output |
|---|---|
| nsamp | Number of samples to draw |
| func | Optional function to apply to the samples drawn from the MC distribution. |
Data frame or list (see details)
If func is NULL, the return value will be a data frame of
sampled parameter values. Otherwise the return value will be a list with the
data frame just described in the first element and the output of func
in the second.