cond_sample.lognormal: Draws samples from a Lognormal survival model conditional on...

Description Usage Arguments Value

View source: R/lognormal_functions.R

Description

Draws samples from a Lognormal survival model conditional on a timepoint and adjusted for a hazard ratio, T \sim f(t|t_0; γ)

Usage

1
2
## S3 method for class 'lognormal'
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 mu, mean of lognormal distribution on the log-scale, and sigma, standard deviation of lognormal distribution on the log-scale

Value

vector of survival times following the Lognormal survival model parameterized by mu and sigma


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