search for: setseed

Displaying 7 results from an estimated 7 matches for "setseed".

Did you mean: set_seed
2008 Jan 02
1
setting the seed in standalone code using Rlib
Hi, Is the below -- setSeed -- an okay way to set the seed in standalone applications making use of Rlib? It seems to work as expected. Is there a better way to do it? (I'm also looking at do_setseed but am unsure what to supply as op. findFun("set.seed", R_GlobalEnv)?) Thanks much. -- David Faden, dfaden at i...
1997 Nov 24
0
R-alpha: random number generator -- S-plus's
...urce directory was `/users/home2/staff/maechler/S/MISC'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 7088 -rw-r--r-- runif-tst.S # 3646 -rw-r--r-- setseed-ex.S # 1132 -rw-r--r-- ../C-Progs/programs/Runif.c # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext...
2011 Mar 27
0
setseed() works well
I tried the following comm in Linux(Ubuntu), It works well: >set.seed(43);runif(3):rnorm(3) >set.seed(43);runif(3);rnorm(3) At 2011-03-26 19:00:05£¬r-sig-debian-request@r-project.org wrote: >Send R-SIG-Debian mailing list submissions to > r-sig-debian@r-project.org > >To subscribe or unsubscribe via the World Wide Web, visit >
2011 Nov 03
2
Take variables in data.frame and create list of matrices
Hi, I have this sample data below and would like to create a list of matricies. setseed(1254) id <- c(1,1,1,1 ,2,2,2) o <- as.factor(c(1:4, 1, 3, 4)) r <- rep(.5, 7) v <- rnorm(7) s <- rnorm(7) dat <-data.frame(id, o, r, v, s) dat #> dat # id o r v s # 1 1 0.5 0.7024631 2.0813672 # 1 2 0.5 -0.5541955 0.1095156 # 1 3 0.5 -1.0418167 0.41...
1999 Jan 01
0
RE: timeslab
...; > So which is which, what's the difference? .... Sorry if this wasn't self evident: timeslab-1.0.tar.gz == timeslab-1.0-0.tar.gz and thus timeslab-1.0-1.tar.gz is the latest version. Incidentally, if someone of the core team could let me know how to deal with the 'setseed' issue. Why is R deviating from S in this point? Best, Bernd -------------------------------------------------------------------- Bernd Johannes Wuebben wuebben at kde.org wuebben at math.cornell.edu wuebben at acm.org --------------------------...
2005 Dec 21
2
Random numbers
Hi All. I have R code whose functionality is being replicated within a C+ program. The outputs are to be compared to validate the conversion somewhat - however (as is always the case) I have stuffed my code with random number calls. Random uniform numbers in C+ are being produced using the (Boost) mersenne-twister generators (mt11213b & mt19937) - which is the default type of generator
1997 Sep 15
0
R-alpha: set.seed(.) [was 'compatibility']
...generate numbers from a new portion of the overall cycle. The intent being that for ANY i,j (i!=j) set.seed(i) and set.seed(j) would choose ``distant'' parts of the periodic cycle. Unfortunately, we don't know what exactly happens in the S-plus code for set.seed(i), namely, .C("setseed", as.integer(i)) However, I have found out the following which should suffice : 1) Only .Random.seed[4:6] are varyied by set.seed, i.e., after set.seed(i), .Random.seed always is 1 2 3 4 5 6 7 8 9 10 11 12 [1] 21 14 49 * * * 32 22 36 23 28 3 X4 X5 X6 Whi...