| rvsample {rv} | R Documentation |
Draws a sample of desired size from each component of a given random variable x.
rvsample(x, size=1, replace=TRUE, prob=NULL)
x |
an object |
size |
size of the sample |
replace |
sample with replacement? |
prob |
optional probability vector, usually not needed |
A numeric array of dimensions size times length(x).
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
#