set.seed() function influence into random in R -
Today I got the first one in an set.seed
function. It's useful at the same time, and I think how to use it, but I have a small problem - how to choose a real good number as the first parameter of this function?
Get one more from that question - how to set.seed ()
In short:
set.seed ()
You specify the starting point for all the "pseudo random number generators" that make random numbers in R
. As the computer is very deterministic, there is nothing like a real "random number", like ? Set.seed
See the computer is always using an algorithm so that the so-called "pseudo random number" can be generated. These generators / algorithms work (often) iterative, so the next number is affected by its predecessor set.seed ()
defines the initial predecessor and thus presents the pseudo random number copy .
(See here :)
Comments
Post a Comment