cond_sample.gompertz: Simulate random variables from a Gompertz distribution. The...

Description Usage Arguments

View source: R/gompertz_functions.R

Description

Simulate random variables from a Gompertz distribution. The function is parameterized with hazard: λ(x) = a \exp(bx)

Usage

1
2
## S3 method for class 'gompertz'
cond_sample(u, t0, trt = 0, params)

Arguments

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. t0 = 0 will return samples from the unconditional distribution

params

list with elements a and b, the parameters of a gompertz distribution.


kravitz-eli/simCondSurv documentation built on April 14, 2020, 6:02 a.m.