Create Multiple Trials with Generated Populations
replicate_trial.RdGenerates n independent Trial objects from a template,
timer, and population generators. Arms must match between plan and
population specifications.
Usage
replicate_trial(
trial_name = "name",
sample_size,
arms,
allocation,
enrollment,
dropout,
analysis_generators,
population_generators,
n
)Arguments
- trial_name
characterBase name for generated trials (index appended). Defaults to"name".- sample_size
integerTotal sample size across all arms.- arms
charactervector of arm identifiers.- allocation
numericvector of arm allocation ratios.- enrollment
functionthat generates inter-enrollment times.- dropout
functionthat generates inter-dropout times.- analysis_generators
list(named) of analysis trigger specifications.- population_generators
list(named) of population generator functions.- n
integerNumber of trials to create.