draw_values | R Documentation |
This function samples n integer values between a floor and a ceiling. The probability of the values are calculated based on a truncated normal distribution of a known mean and standard deviation.
draw_values(n, mean, sd, floor = 1, ceiling = 9)
n |
Number of samples |
mean |
Population mean |
sd |
Population SD |
floor |
Minimum value |
ceiling |
Maximum value |
A vector of n random values.
## Not run:
draw_values(n = 10000, mean = 5, sd = 2, floor = 1, ceiling = 9)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.