[R] Random number generator in R compared to S

About this list Date view Thread view Subject view Author view Attachment view

From: Alain LE TERTRE (a.letertre@invs.sante.fr)
Date: Wed 15 Jan 2003 - 01:52:40 EST


Message-id: <000f01c2bbdc$987bbac0$37c9a8c0@ALETERTRE>

I'm doing some simulations for which i need to use both S-plus and R.
I generate in S+ some random normal distributions to define one dataset by
iteration. I need to use the same dataset generated in S-plus in R.
I was first thinking to generate in R the same dataset by using the same
random number generator with a fixed seed. But It seems that S-plus and R
don't use the same random number generator.
So my question is: Is there a way to pass dynamically dataset generated in
S-plus to R, run a command, extract results, and pass them back to S-plus?
Or is it more efficient to generate all the datasets in S-plus and export
them to R?
Or anything else?

Any hints will be greatly appreciated.
O__ ---- Alain Le Tertre
 c/ /'_ --- Institut de Veille Sanitaire (InVS)
(*) \(*) -- 12 rue du val d'Osne
~~~~~~~~~~ - 94415 Saint Maurice cedex FRANCE
Voice: 33 1 41 79 67 50 Fax: 33 1 41 79 67 68
email: a.letertre@invs.sante.fr

        [[alternate HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:19 EST