[R] repeat until function

Liaw, Andy andy_liaw at merck.com
Wed Nov 12 23:31:27 CET 2003


> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
> 
> Ripley (1987) Stochastic Simulation, pp.80-1 for one.  I am 
> pretty sure it is Knuth's book, although I don't have that to 
> hand.  I attribute it to 
> Moses & Oakford (1963).

Thanks to Brian, Peter and Duncan for the info.  And I have both Ripley
(1987) and Knuth (1981), just not smart enough to look there...

The shuffling algorithm is described on pp. 139-140 in Knuth's book (vol. 2,
2nd ed.), and in addition to Moses & Oakford, he also referenced R.
Durstenfeld, CACM 7 (1964), 420.

Best,
Andy

 
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
>




More information about the R-help mailing list