validation/test_cases/05_MultipleEndpointsTestCases.md

' @title 05. Multiple endpoints test cases

' @editor Johannes Cepicka

' @editDate 2022-08-16

' @coverage

' 05.01: 05.01, 05.04, 05.11, 05.15

' 05.02: 05.01, 05.04, 05.05, 05.10

' 05.03: 05.01, 05.03, 05.06, 05.09

' 05.04: 05.01, 05.03, 05.07, 05.12

' 05.05: 05.08

' 05.06: 05.02, 05.04, 05.05, 05.10

' 05.07: 05.02, 05.04, 05.08

' 05.08: 05.02, 05.03, 05.06, 05.09

' 05.09: 05.02, 05.03, 05.07, 05.12

' 05.10: 05.11, 05.13, 05.14

05. Multiple endpoints test cases {-}

05.01 (shows that req. 05.01, 05.04, 05.11 and 05.15 are met): {-}

Use the function optimal_multiple_tte. Supply the following input values to the function:

Verify that the program returns an expected utility of -212.24 (in 10^5 \$) an optimal number of participants of 100 in phase II and 262 in phase III (i.e. 362 in total), and an optimal threshold value of 0.88. Furthermore, verify, that the program returns a probability to go to phase III of 0.74.

05.02 (shows that req. 05.01, 05.04, 05.05 and 05.10 are met): {-}

Use the function optimal_multiple_tte. Supply the same input values as in test case 05.01, however, set a sample size constraint of 330.

Verify that the program returns an expected utility of -218.92 (in 10^5 \$), an optimal number of participants of 100 in phase II and 219 in phase III (i.e. 319 in total), hence, satisfying the constraint and an optimal threshold value of 0.86.

05.03 (shows that req. 05.01, 05.03, 05.06 and 05.09 are met): {-}

Use the function optimal_multiple_tte. Supply the same input values as in test case 05.01, however, set the parameter fixed to be "TRUE". Redo this, however, the second time use a maximum cost limit of 600 (in 10^5 \$).

Verify that the function returns an optimal number of participants of 172 in phase II and 408 in phase III (i.e. a total of 580 participants), an optimal threshold value of 0.86 and an expected utility of 144.96 (in 10^5 \$). Furthermore, verify, that the function returns costs of 229 (in 10^5 \$) in phase II and 532 (in 10^5 \$) in phase III. With the cost constraint, the function returns an optimal number of participants of 112 in phase II and 301 in phase III (i.e. a total of 413 participants), an optimal threshold value of 0.84 and an expected utility of 130.67 (in 10^5 \$). Furthermore, verify, that the function returns costs of 184 (in 10^5 \$) in phase II and 414 (in 10^5 \$) in phase III, satisfying the constraint.

05.04 (shows that req. 05.01, 05.03, 05.07 and 05.12 are met): {-}

Use the function optimal_multiple_tte. Supply the same input values as in test case 05.01, however, set the parameter fixed to be "TRUE" and set a minimum probability of a successful program of 0.6.

Verify that the function returns an optimal number of participants of 280 in phase II and 467 in phase III (i.e. a total of 747 participants), an optimal threshold value of 0.86 and an expected utility of 132.6 (in 10^5 \$). Furthermore, verify that the probability of a successful program is given as 0.6., satisfying the constraint and that the probability that endpoint OS is significant is 0.54.

05.05 (shows that req. 05.08 is met): {-}

Use the function optimal_multiple_tte. Supply the same input values as in test case 05.01, however change the number of cores for parallel computing to 6.

Verify that the computation time will increase compared to the setting in 05.01.

05.06 (shows that req. 05.02, 05.04, 05.05 and 05.10 are met): {-}

Use the function optimal_multiple_normal(). Supply the following input values to the function:

Redo this, however, the second time set a sample size constraint of 190.

Verify that the program returns an expected utility of 1476.09 (in 10^5 \$), an optimal threshold value of 0.02 and optimal sample sizes of 144 in phase II and 78 in phase III (i.e. 222 in total). With the constraint, the program returns an expected utility of 809.23 (in 10^5 \$), an optimal threshold value of 0.08 and optimal sample sizes of 92 in phase II and 97 in phase III (i.e. 189 in total).

05.07 (shows that req. 05.02, 05.04 and 05.08 are met): {-}

Use the function optimal_multiple_normal. Supply the same input values as in test case 05.06 (without sample size constraint), however, however change the number of clusters for parallel computing to 6.

Verify that the computation time will increase compared to the setting in 05.06.

05.08 (shows that req. 05.02, 05.03, 05.06 and 05.09 are met): {-}

Use the function optimal_multiple_normal. Supply the same input values as in test case 05.06 (without sample size constraint), however, set the parameter fixed to be "TRUE". Redo this, however, the second time use a maximum cost limit of 400 (in 10^5 \$).

Verify that the program returns an expected utility of 1133 (in 10^5 \$), an optimal threshold value of 0.02, an optimal sample size in phase II of 160. Furthermore verify, that the costs are 220 (in 10^5 \$) in phase II and 215 (in 10^5 \$) in phase III, i.e. a total of 407 (in 10^5 \$). Verify, that due to the cost constraint the program now returns an expected utility of 1099 (in 10^5 \$), an optimal threshold value of 0.02, an optimal sample size in phase II of 104. Furthermore verify, that the costs are 178 (in 10^5 \$) in phase II and 220 (in 10^5 \$) in phase III, i.e. a total of 398 (in 10^5 \$), thus, satisfying the constraint.

05.09 (shows that req. 05.02, 05.03, 05.07 and 05.12 are met): {-}

Use the function optimal_multiple_normal. Supply the same input values as in test case 05.06 (without sample size constraint), however, set the parameter fixed to be "TRUE". Redo this and set a minimum probability of a successful program of 0.85.

Verify that the program returns an expected utility of 1133 (in 10^5 \$), an optimal threshold value of 0.02, an optimal sample size in phase II of 160. Furthermore, verify the probability of a successful program is 0.835, and the success probabilities for the various benefit categories are given by 0.15, 0.637 and 0.048 for small, medium and large treatment effects respectively. Furthermore verify, that the constraint cannot be met, within the optimization region, i.e. an expected utility of -9999 is returned, when the constraint is imposed.

05.10 (shows that req. 05.11, 05.13 and 05.14 are met): {-}

Use the function optimal_multiple_normal. Supply the same input values as in test case 05.06 (without sample size constraint), however, set parameter fixed to be "TRUE". Redo this, however the second time, set the parameter relaxed to "FALSE"

Verify that for relaxed = "TRUE" the program returns an expected utility of 1133 (in 10^5 \$), an optimal threshold value of 0.02, an optimal sample size in phase II of 160 and a probability to go to phase III of 0.99. For relaxed = "FALSE", the program returns an expected utility of 410 (in 10^5 \$), an optimal threshold value of 0.02, an optimal sample size in phase II of 132 and a probability to go to phase III of 0.98.



Sterniii3/drugdevelopR documentation built on Jan. 26, 2024, 6:17 a.m.