dtl_tier_sim {dtlcor}R Documentation

Simulated family-wise type I error rate (FWER) given a fixed correlation coefficient under drop-the-losers (DTL) design

Description

Get the simulated FWER alpha given fixed correlation coefficient

Usage

dtl_tier_sim(nsim, n, t, rho, q, alpha_s, sel_g_func = sel_g_func_default, ...)

Arguments

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.

Value

Simulated FWER alpha

Examples


# 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)



[Package dtlcor version 0.1.0 Index]