Build Trial Triggers
trigger_primitives.RdCreate trigger specifications that can be passed to
Condition or composed with & and |.
Usage
value_trigger(col, op, rhs)
count_trigger(col, op, rhs)
notna_trigger(col)
col_trigger(col, op, ref_col)
timed_count_trigger(col, time_col, op, threshold)
enroll_trigger(fraction, sample_size)
calendar_trigger(cal_time)
# S3 method for class 'trigger'
e1 & e2
# S3 method for class 'trigger'
e1 | e2Arguments
- col
characterColumn name referenced by the trigger.- op
characterComparison operator. Must be one ofc(">=", "<=", ">", "<", "==", "!=", "%in%").- rhs
Right-hand side value. Must be atomic for
value_trigger()and numeric forcount_trigger().- ref_col
characterColumn name on the right-hand side of the comparison.- time_col
characterColumn name of the current-time column (e.g."time").- threshold
numericEvent count threshold used withop.- fraction
numericSample fraction (0 < fraction <= 1).- sample_size
numericTarget sample size.- cal_time
numericCalendar time at or after which to trigger. Uses>=so it works with both stochastic (continuous) and deterministic (integer) schedules.- e1, e2
triggerobjects to combine.
See also
Condition, enroll_trigger(), calendar_trigger().