Define a milestone of a trial. This is a user-friendly wrapper for
the class constructor Milestones$new
. Users who are not familiar with
the concept of classes may consider using this wrapper directly.
Arguments
- name
character. Name of milestone.
- type
character vector. Milestone type(s) (futility, interim, final, etc.), an milestone can be of multiple types. This is for information purpose so any string is valid.
- trigger_condition
condition to check if this milestone should be triggered.
- action
function to execute when the milestone triggers.
- ...
arguments for
trigger_condition
.