[R] problems with rexp ?

Juan Ramon Gonzalez jrgonzalez at ico.scs.es
Fri May 3 15:33:44 CEST 2002


Does anyone know if R have any problems with the exponential random number
generation (function rexp)?

I comment it because I executed

data<-sort(rexp(100))
plot(data,dexp(data)/(1-pexp(data)),type="l")

and the graphic isn't constant.

(Note: exponential distribution have a constant hazard failure rate).

Thank you,

Juan

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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