> -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Jim Bouldin > Sent: Thursday, July 23, 2009 9:49 AM > To: ted.hard...@manchester.ac.uk; ted.hard...@manchester.ac.uk; r-h...@r- > project.org > Subject: Re: [R] error message: .Random.seed is not an integer vector but > > > Thanks much Ted. I actually had just tried what you suggest here before > you posted, and resolved the problem. Thanks also for the other tips. I > wrote x = as.vector(c(1:12)) because I thought that the mode of x might be > the problem, the error message pointing to .Random.seed notwithstanding. > > On a related note, I did a brief test a couple weeks back where I ran a > million random samples of 3 from the vector 1:12 and compared the mean > against the known mean. It was off by 1 percent, which indicated that the > RNG was biased more than I'd have thought. Comments? > Jim > <<<snip>>>
It would be necessary to see the code for your 'brief test' before anyone could meaningfully comment on your results. But your results for a single test could have been a valid "random" result. Dan Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.