Description Usage Arguments Value Note See Also Examples
This is a wrapper function for simulating data that have the correct structure for further
processing with rpdataboot
.
1 | rpdatasim(n, replications, rdist, ...)
|
n |
The number of observations per sample |
replications |
the number of samples/replications |
rdist |
A function for simulating random variables |
... |
Further arguments for |
A numeric matrix with n
rows and replications
columns.
Typical choices for rdist
are rexp
or rlnorm
.
See rpdataconv
for converting an existing dataset to a matrix, and
rpdataboot
for creating boostrap replications of such a data matrix.
1 2 3 | # Generate 5 independent samples of size 10 from
# an exponential distribution with mean 10
x <- bootruin:::rpdatasim(n = 10, replications = 5, rexp, rate = 1/10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.