Description Usage Arguments Details Value See Also Examples
Produces a sample_size
number of values Using the random generation
function for the given distribution
. Only the Normal, Binomial
or Poisson distribution are currently accepted.
1 | simulate_values(sample_size, distribution, ...)
|
sample_size |
A integer value larger than zero |
distribution |
A character value specifying the probability distribution |
... |
parameters of the probability distribution |
For the Normal distribution no parameters are necessary, this defaults to the Standard Normal distribution. However, the Poisson and Binomial distribution do require parameters and an error is thrown if these are not provided.
A numeric vector
1 2 | simulate_values(10, 'Normal')
simulate_values(100, 'Binomial', size=10, prob=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.