simulate_values: Simulates values from a probability distribution

Description Usage Arguments Details Value See Also Examples

Description

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.

Usage

1

Arguments

sample_size

A integer value larger than zero

distribution

A character value specifying the probability distribution

...

parameters of the probability distribution

Details

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.

Value

A numeric vector

See Also

rnorm, rpois, rbinom

Examples

1
2
simulate_values(10, 'Normal')
simulate_values(100, 'Binomial', size=10, prob=0.5)

adfi/torbie documentation built on May 10, 2019, 5:54 a.m.