x <- rfatigue(1e5, .5, 2, 5)
xx <- seq(0, 1000, by = 0.1)
hist(x, 100, freq = FALSE)
lines(xx, dfatigue(xx, .5, 2, 5), col = "red")
hist(pfatigue(x, .5, 2, 5))
plot(ecdf(x))
lines(xx, pfatigue(xx, .5, 2, 5), col = "red", lwd = 2)
Run the code above in your browser using DataLab