![]() ![]() ![]() 5, and the standard deviation is \(\sqrt\), so a long enough sequence of random numbers will have repeated numbers. Number of observations (_N) was 0, now 10,000 Prior to using runiform(), we set the seed so that the results are reproducible. In the example below, we use runiform() to create a simulated dataset with 10,000 observations on a (0,1)-uniform variable. Random numbers from the uniform distribution In particular, Stata 14 includes a new default random-number generator (RNG) called the Mersenne Twister (Matsumoto and Nishimura 1998), a new function that generates random integers, the ability to generate random numbers from an interval, and several new functions that generate random variates from nonuniform distributions. I describe how to generate random numbers and discuss some features added in Stata 14.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |