[R] Sample from a hazard function

Christian Lederer christianlederer at t-online.de
Tue Oct 22 06:58:47 CEST 2002


Dear R-gurus,

is there a simple way to simulate of random deviates with a given hazard function? 
Of course, one could do it by foot by calculating the inverse distribution function, 
but perhaps someone knows a package which provides this (perhaps using a more
elegant method).

Christian :-)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list