View source: R/check_stopping_rules.R
check_stopping_rules | R Documentation |
check if dose invokes stopping rules:
Maximum sample size reached
No doses available for evaluation
Lowest dose is too toxic
Highest dose is too futile
Decision is DU/EU and no doses in direction to move are available for evaluation
check_stopping_rules(80, dose_info, 15, 24, "D", closest_lower_dose = 60)
dose |
A numeric dose level (assumed to be available) |
dose_info |
Dataframe containing [dose level | availability | N_d | X_d | Y_d | Z_d | pf | pe | pt] |
sample_size |
Current sample size (across all doses) |
max_samp_size |
Maximum sample size for entire trial |
decision |
Decision, one of "DU", "D", "S", "E", or "EU". Defaults to |
closest_lower_dose |
If decision is to de-escalate, the closest available lower dose, |
closest_higher_dose |
If decision is to escalate, the closest available higher dose, |
Boolean T/F whether any stopping rules were violated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.