Look at the harvestr package for one way to control multiple parallel
simulations and make sure that they have different seeds.
On Wed, Feb 20, 2013 at 4:24 PM, C W tmrs...@gmail.com wrote:
Thanks, Greg. I think you are right. I did simulation one right after
the other, less than 2 seconds.
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of C W
Sent: Tuesday, February 19, 2013 5:32 PM
To: r-help
Subject: [R] Why R simulation gives same random results?
Hi, list
I am doing 100,000 iterations of Bayesian
To know for sure we need to know how you are running these different R
sessions, but here are some possibilities:
The help page for set.seed says that if no seed exists then the seed is
set based on the current time (and since 2.14.0 the process ID). So one
possibility is that 2 of the sessions
Thanks, Greg. I think you are right. I did simulation one right after the
other, less than 2 seconds.
But still, it was shocking to see identical samples, which I had to throw
away.
As a rule of thumb, should I do simulation in one R console, rather than
splitting the work into 2 consoles. I
On 20/02/2013 23:13, Greg Snow wrote:
To know for sure we need to know how you are running these different R
sessions, but here are some possibilities:
The help page for set.seed says that if no seed exists then the seed is
set based on the current time (and since 2.14.0 the process ID). So
5 matches
Mail list logo