Quick AFT recipe builder for list-based simulation recipes
Source:R/recipe_sim_datagen.R
recipe_quick_aft.RdQuick AFT recipe builder for list-based simulation recipes
Usage
recipe_quick_aft(
n,
model = c("aft_lognormal", "aft_weibull"),
baseline,
treat_effect,
covariates,
target_censoring = 0.25,
allocation = "1:1",
seed = NULL
)Arguments
- n
Sample size.
- model
One of
"aft_lognormal"or"aft_weibull".- baseline
Baseline parameter list (see model).
- treat_effect
Numeric treatment coefficient (on log-time scale).
- covariates
Covariate definitions (list of defs).
- target_censoring
Target overall censoring fraction (0-1).
- allocation
Allocation ratio string (e.g., "1:1").
- seed
Optional seed retained as recipe/provenance metadata. It does not set the random-number generator.
Value
A recipe list suitable for simulate_from_recipe.