View source: R/data-generation.R
rweibull_KM | R Documentation |
Sample from Weibull distirbution in K&M parametrisation.
rweibull_KM(n, alph, lam)
n |
sample size |
alph |
Shape parameter of weibull distribution. |
lam |
Rate parameter of lambda distirbution. |
n samples from weibull distribution.
set.seed(4321) times <- rweibull_KM(n = 1000, alph = 0.58, lam = 0.19) hist(times, breaks = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.