Learn R Programming

TrialSimulator (version 1.7.0)

calendarTime: 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)

Value

an object of class `Condition`

Arguments

time

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

Examples

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

Run the code above in your browser using DataLab