Simulates survival times for a delayed treatment effect (DTE) scenario, where the treatment group experiences a delayed onset of benefit. Control and treatment groups are generated under exponential or Weibull distributions.
sim_dte.Rd
Simulates survival times for a delayed treatment effect (DTE) scenario, where the treatment group experiences a delayed onset of benefit. Control and treatment groups are generated under exponential or Weibull distributions.
Usage
sim_dte(
n_c,
n_t,
lambda_c,
delay_time,
post_delay_HR,
dist = "Exponential",
gamma_c = NULL
)
Arguments
- n_c
The number of patients in the control group
- n_t
The number of patients in the treatment group
- lambda_c
The baseline hazard rate for the control group
- delay_time
The length of delay before treatment effect begins
- post_delay_HR
The hazard ratio after the delay period
- dist
The distribution for the control group; must be one of "Exponential" (default) or "Weibull"
- gamma_c
The shape parameter for the Weibull distribution (only used if
dist = "Weibull"
)