lundi 20 février 2017

How to set a maximum and minimum value when creating a random number set using SFTM with randtoolbox in R?

I am creating datasets of pseudo-random numbers that have the same minimum, maximum and number of values as a true dataset (e.g. 0, 270, 47) that I have, to use to compare the statistical characteristics of real life vs. randomly generated data.

I am familiar with some of the standard PRNGs such as runif and rnorm and how to specify the max, min and number of values with these.

I now want to use SFTM with randtoolbox to create my simulated datasets but I can only find a way to set the number of values and not a maximum or minimum, so it is only giving me values between 0 and 1.

Is it possible to set these values and if so, how?




Aucun commentaire:

Enregistrer un commentaire