Dear Sir/Madam, I am a beginner in R. Here is my questions. 1. Can you give me one test for randomness (a name and descriptive paragraph is sufficient). 2. I have learned a uniform random number generator [e.g. not the algorithms: i)Wichmann-Hill, ii) Marsaglia-Multicarry, iii) Super-Duper (Marsaglia), iv) Mersenne-Twister, v) TAOCP-1997 (Knuth), or vi) TAOCP-2002 (Knuth)] . Is there any other method besides that? 3. How to generate 100 random standard normal deviates using the Box-Muller method for standard normal random deviates and sort the sequence, smallest to largest? Your kind help is greatly appreciated. Thanks in advance! best wishes yuying shi [[alternative HTML version deleted]]
Hi There is a very good introduction script to R on http://www.r-project.org/ under manuals, including an index of nice functions. For example you will find the basic plots, how to sort vectors and so on. Furthermore have a look at ?RSiteSearch It is very useful to search in R archives for similar problems. Lots of answers are already there and only wait to be found. So there is a good chance that you will find the information that you are looking for in these archives. Best regards, Christoph Buser -------------------------------------------------------------- Christoph Buser <buser at stat.math.ethz.ch> Seminar fuer Statistik, LEO C13 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-44-632-4673 fax: 632-1228 http://stat.ethz.ch/~buser/ -------------------------------------------------------------- Yuying Shi writes: > Dear Sir/Madam, > I am a beginner in R. Here is my questions. > 1. Can you give me one test for randomness (a name and descriptive > paragraph is sufficient). > 2. I have learned a uniform random number generator [e.g. not the > algorithms: i)Wichmann-Hill, ii) Marsaglia-Multicarry, iii) Super-Duper > (Marsaglia), iv) Mersenne-Twister, v) TAOCP-1997 (Knuth), or vi) TAOCP-2002 > (Knuth)] . Is there any other method besides that? > 3. How to generate 100 random standard normal deviates using the Box-Muller > method for standard normal random deviates and sort the sequence, smallest > to largest? > Your kind help is greatly appreciated. Thanks in advance! > best wishes > yuying shi > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Yuying Shi wrote:> Dear Sir/Madam, > I am a beginner in R. Here is my questions. > 1. Can you give me one test for randomness (a name and descriptive > paragraph is sufficient). > 2. I have learned a uniform random number generator [e.g. not the > algorithms: i)Wichmann-Hill, ii) Marsaglia-Multicarry, iii) Super-Duper > (Marsaglia), iv) Mersenne-Twister, v) TAOCP-1997 (Knuth), or vi) TAOCP-2002 > (Knuth)] . Is there any other method besides that? > 3. How to generate 100 random standard normal deviates using the Box-Muller > method for standard normal random deviates and sort the sequence, smallest > to largest? > Your kind help is greatly appreciated. Thanks in advance! > best wishes > yuying shiPlease do not ask the list to do your homework (I'd highly suspect this is homework, in particular from your first question). Excercises are there to be solved by yourself. And if that fails, what about asking your lecturer rather than thousands of others? Uwe Ligges> [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html