dtl_get_alpha_s_sim | R Documentation |
Get the numerical significant level alpha_s based on a pre-specified FWER alpha given a fixed correlation coefficient for the final stage by simulation (reverse calculation of dtl_tier_sim())
dtl_get_alpha_s_sim(
nsim = 1e+05,
n,
t,
rho,
q,
alpha,
sel_g_func = sel_g_func_default,
...
)
nsim |
Number of replicates |
n |
Sample size per arm at DTL look |
t |
A vector of information fraction of final stage |
rho |
Fixed correlation coefficient |
q |
Response rate under the null |
alpha |
A pre-specified FWER |
sel_g_func |
Arm-select function. The default function is sel_g_func_default(W_2, W_1, delta). Users can define their own arm-select function. The format of the function must be function_name(W_2, W_1, ...). The return values must be 1 (arm 1 is selected) or 2 (arm 2 is selected) or 0 (stop for futility). |
... |
Other arguments from sel_g_func. |
Significance level alpha_s for the final stage
# Without interim analysis
dtl_get_alpha_s_sim(nsim = 100000, n = 80, t = 1, rho = 0.4, q = 0.3,
alpha = 0.025, delta = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.