PredP.design: The stopping boundaries based on the predictive probability...

Description Usage Arguments Value References Examples

Description

The design function to sequentially monitor sample size and boundary based on Lee and Liu's criterion.

Usage

1
PredP.design(type, nmax, a, b, p0, theta_t, theta, optimize)

Arguments

type

type of boundaries: "efficacy" or "futility".

nmax

the maximum number of patients treated by the experimental drug.

a

the hyperparameter (shape1) of the Beta prior for the experimental drug.

b

the hyperparameter (shape2) of the Beta prior for the experimental drug.

p0

the the response rate for the standard drug.

theta_t

the cutoff probability for efficacy including future patients; typically, θ_T = [0.85, 0.95]. Set 0.9 by default.

theta

the cutoff probability: typically, θ = [0.9, 0.99] for efficacy, θ = [0.01, 0.1] for futility.

optimize

logical value, if optimize=TRUE, then only output the minimal sample size for the same number of futility and efficacy boundaries.

Value

boundset

the boundaries set: U_n or L_n

References

Lee, J. J., Liu, D. D. (2008). A predictive probability design for phase II cancer clinical trials. Clinical Trials 5: 93-106.

Yin, G. (2012). Clinical Trial Design: Bayesian and Frequentist Adaptive Methods. New York: Wiley.

Examples

1
2
PredP.design(type = "futility", nmax=40, a=1, b=1, p0=0.3, theta=0.05)
PredP.design(type = "efficacy", nmax=40, a=1, b=1, p0=0.3, theta=0.9)

Example output

sh: 1: cannot create /dev/null: Permission denied
Loading required package: animation
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Loading required package: nleqslv
    n bound
1   1    NA
2   2    NA
3   3    NA
4   4    NA
5   5     0
6   6     0
7   7     0
8   8     0
9   9     1
10 10     1
11 11     1
12 12     2
13 13     2
14 14     2
15 15     3
16 16     3
17 17     3
18 18     4
19 19     4
20 20     5
21 21     5
22 22     5
23 23     6
24 24     6
25 25     7
26 26     7
27 27     8
28 28     8
29 29     8
30 30     9
31 31     9
32 32    10
33 33    10
34 34    11
35 35    11
36 36    12
37 37    12
38 38    13
39 39    14
40 40    15
    n bound
1   1    NA
2   2     2
3   3     3
4   4     3
5   5     4
6   6     4
7   7     5
8   8     5
9   9     6
10 10     6
11 11     7
12 12     7
13 13     7
14 14     8
15 15     8
16 16     9
17 17     9
18 18     9
19 19    10
20 20    10
21 21    11
22 22    11
23 23    11
24 24    12
25 25    12
26 26    12
27 27    13
28 28    13
29 29    13
30 30    14
31 31    14
32 32    14
33 33    15
34 34    15
35 35    15
36 36    16
37 37    16
38 38    16
39 39    16
40 40    16

ph2bye documentation built on May 1, 2019, 6:33 p.m.

Related to PredP.design in ph2bye...