Define a condition to trigger trial milestone by the number of randomized
patients. The milestone will be trigger when a trial has enrolled
at least the specified number of patients. It can be used combined with
conditions specified by calendarTime and
eventNumber.
Usage
enrollment(n, arms = NULL)
Arguments
- n
integer. Number of randomized patients.
- arms
vector of character. Name of arms on which the number of patients
is counted. If NULL
, use all arms that are not yet removed from the
trial by the time of calculation.
Value
an object of class `Condition`