calendarTime: Triggering Condition by Calendar Time

View source: R/calendarTime.R

calendarTimeR Documentation

Triggering Condition by Calendar Time

Description

Define a condition to trigger trial milestone by calendar time. The milestone will be triggered when a trial has been running for at least the specified duration since the first patient is enrolled. It can be used combined with conditions specified by enrollment and eventNumber.

Refer to the vignette to learn how to define milestones when performing simulation using TrialSimulator.

Usage

calendarTime(time)

Arguments

time

numeric. Calendar time to trigger a milestone of a trial.

Value

an object of class 'Condition'

Examples

milestone(name = 'end of trial', when = calendarTime(time = 12))


TrialSimulator documentation built on Nov. 5, 2025, 7:22 p.m.