Replies: 3 comments
-
In short (and in theory) to have the same random deviates, you need to use the same compiler between the platforms. The easiest is to try to use Unfortunately, I haven't tested this, but I believe this to be true, I will explain why you may observe differences. The simulations have to use a parallel compatible random number generator, since https://cran.r-project.org/web/packages/sitmo/index.html The uniform random number generators in Mac, Windows and Linux are the same regardless of if you use The more complex random number generators use the uniform number generator to create a normal random number, or any other random numbers. These are implemented in C++. For These deviates are calculated in the Since rounding, and other functions are treated differently between different compilers, I simply say there are platform differences and really to reproduce the exact same results you need to have the same type of computer too. You could use something like docker to reproduce the results. |
Beta Was this translation helpful? Give feedback.
-
You could also use the non-thread safe R simulations which are stable between platforms (but not thread safe). |
Beta Was this translation helpful? Give feedback.
-
As a note, this will be changing in the next release of This was pointed out by @rstub and is a great idea. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I have a run a simple RxODE 2 simulation with population variance on two different computer architectures, but using the same version of R and RStudio and same package version. RxSetSeed has been set to the same value on both computers.
Should the simulations return the same values? Is there a way of ensuring that they are the same on different computer architectures?
Beta Was this translation helpful? Give feedback.
All reactions