[R] Getting different results with set.seed()
petr@p|k@| @end|ng |rom prechez@@cz
Thu Aug 19 09:56:34 CEST 2021
Please provide at least your code preferably with some data to reproduce
this behaviour. I wonder if anybody could help you without such information.
My wild guess is that you used
the code used again
in which case you have to expect different results.
> -----Original Message-----
> From: R-help <r-help-bounces using r-project.org> On Behalf Of Shah Alam
> Sent: Thursday, August 19, 2021 9:46 AM
> To: r-help mailing list <r-help using r-project.org>
> Subject: [R] Getting different results with set.seed()
> Dear All,
> I was using set.seed to reproduce the same results for the discrete event
> simulation model. I have 12 unknown parameters for optimization (just a
> little background). I got a good fit of parameter combinations. However,
> when I use those parameters combinations again in the model. I am getting
> different results.
> Is there any problem with the set.seed. I assume the set.seed should
> produce the same results.
> I used set.seed(1234).
> Best regards,
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help