Re: [R] set.seed( ) function

2011-04-24 Thread Petr Savicky
On Sun, Apr 24, 2011 at 10:10:45PM +1200, Penny Bilton wrote: > Thank you for the help so far. Also, I don't quite understand what the > set.seed function does. Does it choose a starting point for the random > number generation? Yes. The generator produces a periodic sequence, which may be unde

[R] set.seed( ) function

2011-04-24 Thread Penny Bilton
Thank you for the help so far. Also, I don't quite understand what the set.seed function does. Does it choose a starting point for the random number generation? Thanks, Penny. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] set.seed ( ) function

2011-04-22 Thread Tal Galili
Hello Niel, Thank you for writing this. In my original post I wrapped the word "real" with quotes for just the reason you've mentioned (although I didn't know of Xi'ans post), so I agree with you that I should have instead wrap the sentence with words of caution (instead of merely with quotes).

Re: [R] set.seed ( ) function

2011-04-22 Thread Niels Richard Hansen
Tal Let me express some concern about using words like "true" or "real" in relation to random number generation - for exactly the same reasons as mentioned here: http://xianblog.wordpress.com/2010/09/07/truly-random/ Device random number generators (whether provided via web-services or not) sh

Re: [R] set.seed ( ) function

2011-04-22 Thread Tal Galili
BTW, Ken Kleinman recently wrote a post on how to get a "real" random numbers (into R) from a web-service: http://www.r-bloggers.com/example-8-35-grab-true-not-pseudo-random-numbers-passing-api-urls-to-functions-or-macros/

Re: [R] set.seed ( ) function

2011-04-21 Thread Joshua Wiley
On Thu, Apr 21, 2011 at 8:34 PM, Penny Bilton wrote: > Hi Josh, > > Thanks for your reply. > > The problem is have is in trying to retain the proportions of 2 groups in my > data while sampling into training and test sets. I find that different >  arguments for set.seed give very different proport

Re: [R] set.seed ( ) function

2011-04-21 Thread Joshua Wiley
Hi, On Thu, Apr 21, 2011 at 8:18 PM, Penny Bilton wrote: > I am using /set.seed()/   before the /sample/   function. > > How does the length of the argument of /set.seed()/   and order of the > digits affect how the sampling is carried out? You can use set.seed() to specify a particular seed so

[R] set.seed ( ) function

2011-04-21 Thread Penny Bilton
I am using /set.seed()/ before the /sample/ function. How does the length of the argument of /set.seed()/ and order of the digits affect how the sampling is carried out? Specifically, I have used set.seed(123456789). Will this configuration give me a genuinely random sampling?? Thank yo