Description Usage Arguments Value Examples
Function for calculating the operating characteristics of the RCT Bayesian designs in setting 3 and 4 for early gating.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
N_c |
Sample Size in the control group. Can be either a single value or a vector, but needs to be the same length as N_e. |
N_e |
Sample Size in the experimental group. Can be either a single value or a vector, but needs to be the same length as N_c. |
delta |
Required superiority to make a "GO" decision. Corresponds to δ. |
delta_power |
Superiority, at which decision power will be evaluated. Corresponds to δ bar. |
confidence |
Required confidence to make "GO" decision. Corresponds to γ. |
e_a |
Alpha parameter of Beta Prior Distribution for the experimental response rate. Corresponds to α e. Default is 1/2. |
e_b |
Beta parameter of Beta Prior Distribution for the experimental response rate. Corresponds to β e. Default is 1/2. |
c_a |
Alpha parameter of Beta Prior Distribution for the control response rate. Corresponds to α c. Default is 1/2. |
c_b |
Beta parameter of Beta Prior Distribution for the control response rate. Corresponds to β c. Default is 1/2. |
h_a |
Alpha parameter of Beta Prior Distribution for the historical control response rate. Corresponds to α h. Only needs to be specified, if RR_h, N_h and w are also specified. Default is 1/2. |
h_b |
Beta parameter of Beta Prior Distribution for the historical control response rate. Corresponds to β h. Only needs to be specified, if RR_h, N_h and w are also specified. Default is 1/2. |
RR_h |
Historical control response rate. Corresponds to p h. If specified together with N_h and w, function will use setting 4 from pdf. |
N_h |
Historical control sample size. Corresponds to n h. If specified together with RR_h and w, function will use setting 4 from pdf. |
w |
Level of dynmaic borrowing. Corresponds to w. |
trues |
Sequence of true control response rates and experimental response rates, at which the Probability to Go will be computed. Default is seq(0,1,0.01) to ensure continuous plots and accurate results. |
plot |
Plots yes or no. Default is TRUE. |
legend |
Logical; whether or not to include legend in plot. Default is TRUE. |
legend.pos |
Position of legend. Default is "topleft". |
A matrix containing the decision power and decision alpha with respect to the true control response rate.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.