amices / mice

Multivariate Imputation by Chained Equations
https://amices.org/mice/
GNU General Public License v2.0
444 stars 107 forks source link

Randomseed #432

Closed stefvanbuuren closed 3 years ago

stefvanbuuren commented 3 years ago

This PR is a response to request #426. It implements local seed values that do not interfere with the calling code, and hence minimises side effect on .GlobalEnv. This is especially useful for complex simulations.

Some decision made:

I tried to maintain compatibility with earlier version, but there are no guarantees. The changes made here may render existing code irreproducible, especially if you use the random generator between multiple calls to mice. If you want exact reproducibility in such cases, I fear the only possibility is to install a mice version prior to 3.13.11.