## ensure sufficient sample size of whole trial
enrollment(n = 100)
## ensure sufficient sample size in sub-group of interest
enrollment(n = 100, biomarker1 == 'positive' & biomarker2 == 'high')
## ensure sufficient sample size in high dose + placebo
enrollment(n = 1000, arms = c('high dose', 'placebo'))
## ensure sufficient treatment duration
enrollment(n = 500, min_treatment_duration = 2)
Run the code above in your browser using DataLab