Skip to contents

Patients and Allocation Simulation

Functions to simulate patients and their assignment to treatment groups

simulate_patients()
Simulate baseline patient demographics and site assignments
simulate_allocation()
Randomly allocate patients to treatment arms

Outcome Simulation

Functions to simulate different types of clinical outcomes

simulate_outcomes()
Simulate a single outcome per patient (continuous or binary)
simulate_longitudinal_outcomes()
Simulate longitudinal outcome measurements
simulate_survival()
Simulate time-to-event (survival) outcomes

Dropout and Visit Simulation

Functions to simulate events occurring during the study

simulate_visits()
Generate scheduled visits for each patient
simulate_dropout()
Simulate dropouts (patient discontinuation) during the trial

Data

Functions to export data in specific formats

export_adam_format()
Export an ADaM-style ADSL dataset