Description Usage Arguments Details Value Author(s) References Examples
Draws a sample of desired size from each component of a given random
variable x
.
1 |
x |
an object |
size |
size of the sample |
jointly |
return joint simulations and not simulations from each component separately |
reject.na |
reject each draw that contains an |
Samples (with replacement) from the distribution of the random variable
object. In effect it samples from the rows of the simulation matrix
sims(x)
.
A numeric array of dimensions size
times
length(x)
.
Jouni Kerman jouni@kerman.com
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")
.
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.