create_event_dist {psborrow2} | R Documentation |
Specify a Time to Event Distribution
Description
Uses simsurv::simsurv to generate time to event data. See simsurv
help for more details.
Usage
create_event_dist(
dist = NULL,
lambdas = NULL,
gammas = NULL,
mixture = FALSE,
pmix = 0.5,
hazard = NULL,
loghazard = NULL,
cumhazard = NULL,
logcumhazard = NULL,
...
)
null_event_dist()
Arguments
dist |
Specify the distribution |
lambdas |
Scale parameter |
gammas |
Second parameter needed for Weibull or Gompertz distributions |
mixture |
Use mixture model? |
pmix |
Proportion of mixtures |
hazard |
A user defined hazard function |
loghazard |
Alternatively, a user defined log hazard function |
cumhazard |
Alternatively, a user defined cumulative hazard function |
logcumhazard |
Alternatively, a user defined log cumulative hazard function |
... |
Other |
Value
A SimDataEvent
object
null_event_dist
returns an object with no parameters specified that does not simulate event times.
Examples
weibull_surv <- create_event_dist(dist = "weibull", lambdas = 1 / 200, gammas = 1)
exp_event_dist <- create_event_dist(dist = "exponential", lambdas = 1 / 36)
null_event_dist()
[Package psborrow2 version 0.0.3.4 Index]