On Dec 12, 2012, at 6:34 PM, Jichun Chan wrote: > Hi, > Does anyone know how to write a command to generate time-to-event > data for Cox's regression? > There are examples in the rms package for the cph function. I also see example in the help pages for the survival package. -- David Winsemius, MD Alameda, CA, USA