[R] Generate random variables with a specific hazard

From: Mai Zhou <mai_at_ms.uky.edu>
Date: Tue 20 Dec 2005 - 07:27:46 EST

Dear R-help: I am trying to re-produce the simulations of Kosorok and Lin (1999) JASA, (The versatility of function-indexed weighted log-rank test, 320-332).

I need help to generate random variables in R with hazard function:

h(t) = 2*t*exp{ 0.96 * exp(-4*t^2) }

for t > 0.

This is the alternative case B in their table 1 on page 326.


Mai Zhou

R-help@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 Received on Tue Dec 20 07:35:06 2005

This archive was generated by hypermail 2.1.8 : Tue 20 Dec 2005 - 09:38:17 EST