Re: [R] Getting different results with set.seed()

2021-08-19 Thread Henrik Bengtsson
t; > > > > > > > > > > > > > > > > > On 19-08-2021 11:25, PIKAL Petr wrote: > > > > Hi > > > > > > > > Did you try different order? > > > > > > > > Step 2: set.seed (123) >

Re: [R] Getting different results with set.seed()

2021-08-19 Thread Eric Berger
> > Step 1. Self-coded functions (these functions generate random numbers as > > well) > > > > > > Step 3: Call those functions. > > > > > > Step 4: model results. > > > > > > Cheers > > > Petr. > > > > > > And B

Re: [R] Getting different results with set.seed()

2021-08-19 Thread Shah Alam
el results. > > > > Cheers > > Petr. > > > > And BTW, do not use HTML formating, it could cause problems in text only > list. > > > > > > From: Shah Alam > > Sent: Thursday, August 19, 2021 10:10 AM > > To: PIKAL Petr > > Cc

Re: [R] Getting different results with set.seed()

2021-08-19 Thread Jan van der Laan
tep 4: model results. Cheers Petr. And BTW, do not use HTML formating, it could cause problems in text only list. From: Shah Alam Sent: Thursday, August 19, 2021 10:10 AM To: PIKAL Petr Cc: r-help mailing list Subject: Re: [R] Getting different results with set.seed() Dear Petr, It is more t

Re: [R] Getting different results with set.seed()

2021-08-19 Thread PIKAL Petr
Alam Sent: Thursday, August 19, 2021 10:10 AM To: PIKAL Petr Cc: r-help mailing list Subject: Re: [R] Getting different results with set.seed() Dear Petr, It is more than 2000 lines of code with a lot of functions and data inputs. I am not sure whether it would be useful to upload it. However

Re: [R] Getting different results with set.seed()

2021-08-19 Thread Jeff Newmiller
rmation. >> >> My wild guess is that you used >> >> set.seed(1234) >> >> some code >> >> the code used again >> >> in which case you have to expect different results. >> >> Cheers >> Petr >> >> > -Original Mes

Re: [R] Getting different results with set.seed()

2021-08-19 Thread Shah Alam
> > Cheers > Petr > > > -Original Message- > > From: R-help On Behalf Of Shah Alam > > Sent: Thursday, August 19, 2021 9:46 AM > > To: r-help mailing list > > Subject: [R] Getting different results with set.seed() > > > > Dear All, > &

Re: [R] Getting different results with set.seed()

2021-08-19 Thread PIKAL Petr
Petr > -Original Message- > From: R-help On Behalf Of Shah Alam > Sent: Thursday, August 19, 2021 9:46 AM > To: r-help mailing list > Subject: [R] Getting different results with set.seed() > > Dear All, > > I was using set.seed to reproduce the same res

[R] Getting different results with set.seed()

2021-08-19 Thread Shah Alam
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