Skip to content
Prev 617 / 63424 Next

R-alpha: compatibility

This is one point where compatibility is not necessarily a good
thing. S, like most systems gives, you no real control over the random
number generator expect re-seeding. Usually this is probably good. But
most simulation books recommend running any simulations you care about
with two very different generators. Most people don't do this because
one generator is usually easy to use (the built-in one in your
favorite system) and anything else is impossible. Another issue that S
faces has to do with running separate bits of a simulation on separate
workstations. Unless you are careful, the separate bits will share
parts of random number streams, and being careful is not really
possible with S's generator (I think) -- it is possible but not easy
with R's. (Of course overlap can be a good thing if you know you have
it -- the point here is that lots of folks run separate simulations
thinking they have independent runs when they probably do not in any
reasonable sense).

The bottom line is that it would be nice to eventually provide "power
users" with more control over the random number generator system.  Now
is clearly not the time to think about how to do that, but it would be
unfortunate if decisions were made at this point in the name of
compatibility that might limit the freedom of doing something "right"
later on.

Just my 2c.

luke
Message-ID: <9709151655.AA13639@nokomis.stat.umn.edu>
In-Reply-To: <Pine.SUN.3.95.970915091422.1882B-100000@troi> from "Thomas Lumley" at Sep 15, 97 09:27:54 am