
Last chance! 50% off unlimited learning
Sale ends in
x
.sims(x, ...)
## S3 method for class 'default':
sims(x, \dots)
## S3 method for class 'rv':
sims(x, dimensions=FALSE, n.sims=getnsims(), ...)
## S3 method for class 'rvsummary':
sims(x, dimensions=FALSE, \dots)
x
sims
returns the matrix of simulations for a given random variable object x
. The first index of the matrix indicates the number of the simulation draw (``simulations are in rows").
See also vignette("rv")
.
setnsims(n.sims=2500)
x <- rvnorm(24)
dim(x) <- c(2,3,4)
dim(sims(x)) # 2500x24
dim(sims(x, dimensions=TRUE)) # 2500x2x3x4
Run the code above in your browser using DataLab