Learn R Programming

escalation (version 0.1.10)

enforce_three_plus_three: Enforce that a trial path has followed the 3+3 method.

Description

This function stops with en error if it detects that outcomes describing a trial path have diverged from that advocated by the 3+3 method.

Usage

enforce_three_plus_three(outcomes, allow_deescalate = FALSE)

Value

Nothing. Function stops if problem detected.

Arguments

outcomes

Outcomes observed. See parse_phase1_outcomes.

allow_deescalate

TRUE to allow de-escalation, as described by Korn et al. Default is FALSE.

Examples

Run this code
if (FALSE) {
enforce_three_plus_three('1NNN 2NTN 2NNN')  # OK
enforce_three_plus_three('1NNN 2NTN 2N')  # OK too, albeit in-progress cohort
enforce_three_plus_three('1NNN 1N')  # Not OK because should have escalated
}

Run the code above in your browser using DataLab