Sample from Weibull distirbution in K&M parametrisation.

rweibull_KM(n, alph, lam)

Arguments

n

sample size

alph

Shape parameter of weibull distribution.

lam

Rate parameter of lambda distirbution.

Value

n samples from weibull distribution.

Examples


set.seed(4321)

times <- rweibull_KM(n = 1000, alph = 0.58, lam = 0.19)
hist(times, breaks = 30)