cond_sample.loglogistic: Simulate random variables from a log logistic distribution....

Description Usage Arguments Value

View source: R/loglogistic_functions.R

Description

Simulate random variables from a log logistic distribution. The function is parameterized with hazard: \frac{(β / α)(t / α)^{β-1}}{1+(t / α)^{β}}

Usage

1
2
## S3 method for class 'loglogistic'
cond_sample(u, t0, trt, 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

a named list containing alpha, the scale parameter (and media), and beta, the shape parameter

Value

a vector of failure times conditional on t0


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