View source: R/gompertz_functions.R
Simulate random variables from a Gompertz distribution. The function is parameterized with hazard: λ(x) = a \exp(bx)
1 2 | ## S3 method for class 'gompertz'
cond_sample(u, t0, trt = 0, params)
|
u |
numeric vector, 0 ≤q u ≤q 1 for all elements in u. |
t0 |
Nonnegative real number. The time the survival function is
conditioned on. |
params |
list with elements a and b, the parameters of a gompertz distribution. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.