dtl_tier_sim | R Documentation |
Get the simulated FWER alpha given fixed correlation coefficient
dtl_tier_sim(nsim, n, t, rho, q, alpha_s, 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_s |
Significance level for the final stage |
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. |
Simulated FWER alpha
# Without interim analysis
dtl_tier_sim(nsim = 1000, n = 80, t = 1, rho = 0.4, q = 0.3,
alpha_s = 0.025, delta = 0.05)
# With interim analysis
dtl_tier_sim(nsim = 1000, n = 80, t = c(0.5, 1), rho = c(0.4, 0.2), q = 0.3,
alpha_s = 0.025, delta = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.