- dat
A data.frame representing the original or reconstructed dataset for simulation.
The dataset must include three columns: for event times, for censoring status,
and for group identifiers.
- col_time
The name or index of the column in dat representing time to event.
- col_status
The name or index of the column in dat representing the event status
(1 for event occurred, 0 for censored).
- col_group
The name or index of the column in dat representing group assignments.
- reps
The number of iterations, equivalent to the number of datasets simulated for each simulation model.
Defaults to 10000.
- random_seed
Seed for random number generation to ensure reproducibility. Defaults to 123.
- n
An optional numeric vector specifying the number of observations to simulate for each group.
If NULL, the function uses the original dataset's group sizes for simulation.
For all simulation types except "conditional bootstrap," n can be set to arbitrary values,
such as c(50, 60), where each element specifies the number of observations for a group.
Defaults to NULL.
- simul_type
A vector of characters specifying the types of simulation to perform. It includes
"cond" (conditional bootstrap), "case" (case resampling), "distr" (parametric distributions),
and "KDE" (kernel density estimation, supports all kernels available in the kdensity function. Refer to 'kdensity'). Note: Only one simulation type can be used at a time.
- distribs
Character vector of length 4, one distribution per stratum.
Must be one of:
"inverse_gamma"
"llogis"
"gumbel"
"exp"
"gamma"
"normal"
"cauchy"
Defaults to c("exp", "exp", "exp", "exp").