Re: [R] seed problem?

2021-03-29 Thread Mika Hamari
exist, random numbers are random. Mika L�hett�j�: Bill Dunlap<mailto:williamwdun...@gmail.com> L�hetetty: maanantai 29. maaliskuuta 2021 18.56 Vastaanottaja: Mika Hamari<mailto:mika.hamar...@outlook.com> Kopio: r-help@r-project.org<mailto:r-help@r-project.org> Aihe: Re: [R] seed p

Re: [R] seed problem?

2021-03-29 Thread Bill Dunlap
Does this happen if you start R with the --vanilla flag? If so it may be that you have a startup file, .\.Rprofile or %HOME%\.Rprofile that is calling set.seed(n) for a fixed n. -Bill On Mon, Mar 29, 2021 at 12:16 AM Mika Hamari wrote: > > Hi! > > I have Windows 10 on PC and different versions

Re: [R] seed problem?

2021-03-29 Thread Mika Hamari
-help@r-project.org, Mika Hamari , r-help@r-project.org Aihe: Re: [R] seed problem? Check if you have a .RData file in your R startup directory. It may contain the seed. .RData files (without anything in front of the period) are dangerous... many R users avoid them because they can easily drag

Re: [R] seed problem?

2021-03-29 Thread Jeff Newmiller
Check if you have a .RData file in your R startup directory. It may contain the seed. .RData files (without anything in front of the period) are dangerous... many R users avoid them because they can easily drag in mistakes from previous sessions to plague you. On March 28, 2021 9:02:17 AM PDT,

Re: [R] seed

2010-04-26 Thread Greg Snow
The set.seed function works like you show. If you want to get a little fancier you can use the char2seed function from the TeachingDemos package, then you could set you seed with something like: > char2seed('jimmy') Or another string that represents the simulation. -- Gregory (Greg) L. Snow

Re: [R] seed

2010-04-26 Thread Jimmy Söderly
Thanks Steve, it seems to work ! 2010/4/26 Steve Lianoglou > Hi, > > On Mon, Apr 26, 2010 at 10:45 AM, Jimmy Söderly > wrote: > > Hi everybody, > > > > How can I set the seed for my simulations ? Is "set.seed(123456)" alright > ? > > Hmm ... > > R> set.seed(123456) > R> rnorm(5) > [1] 0.8337

Re: [R] seed

2010-04-26 Thread Steve Lianoglou
Hi, On Mon, Apr 26, 2010 at 10:45 AM, Jimmy Söderly wrote: > Hi everybody, > > How can I set the seed for my simulations ? Is "set.seed(123456)" alright ? Hmm ... R> set.seed(123456) R> rnorm(5) [1] 0.83373317 -0.27604777 -0.35500184 0.08748742 2.25225573 R> rnorm(5) [1] 0.8344601 1.31241

Re: [R] Seed of Random number generation

2009-05-02 Thread Uwe Ligges
cls59 wrote: RON70 wrote: Dear all, is it possible to extract the seed that was used for some random number generation? For example suppose I draw a random sample of size 1000 from a normal population : rnorm(1000) Now I want to know what seed R used for that sample generation. Any way out?

Re: [R] Seed of Random number generation

2009-05-01 Thread cls59
RON70 wrote: > > Dear all, is it possible to extract the seed that was used for some random > number generation? For example suppose I draw a random sample of size 1000 > from a normal population : > > rnorm(1000) > > Now I want to know what seed R used for that sample generation. Any way > ou