# List of all parameters
parameters = list()
# Endpoint type
parameters$endpoint_type = "Normal"
# Direction of favorable outcome
parameters$direction = "Higher"
# Number of enrolled patients (control, two treatments)
parameters$sample_size = c(200, 200, 200)
# Patient dropout rate
parameters$dropout_rate = 0.05
# Mean and SD in the control arm
parameters$control_mean = 0
parameters$control_sd = 1
# Means and SDs in the multiple treatment arms
parameters$treatment_mean = c(0.25, 0.30)
parameters$treatment_sd = c(1, 1)
# Information fractions at IA1, IA2, FA
parameters$info_frac = c(0.4, 0.6, 1)
# Futility threshold for conditional power at IA1
parameters$futility_threshold = 0.25
# Number of treatments to be selected at the second interim analysis
parameters$treatment_count = 1
# Multiple testing procedure to be used in the trial
parameters$mult_test = "Hochberg"
# One-sided alpha level
parameters$alpha = 0.025
# Number of simulations, you should prefer more
parameters$nsims = 100
# Number of cores for parallel calculations
parameters$ncores = 1
# Run simulations to compute operating characteristics
results = ADTreatSel(parameters)
# Generate a simulation report (remove tempfile)
GenerateReport(results,
tempfile("ADTreatSel Normally distributed endpoint.docx", fileext=".docx"))
Run the code above in your browser using DataLab