[R] repeat until function

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Nov 12 19:03:36 CET 2003


"Liaw, Andy" <andy_liaw at merck.com> writes:

> This is obviously not efficient in high-level languages like R, but in terms
> of algorithm, it is a lot more efficient than check-and-reject.  IMHO this
> should be described in some book, but I have not seen any book describing
> it.

I'm pretty sure I have - way back. Can't recall exactly where though.
Either in a CS book or as an exercise in a stats book (proving that it
actually works).

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list