AED3_SSR.sim: Conduct the simulation studies of the Adaptive Enrichment...

Description Usage Arguments Value Examples

View source: R/esDesign.R

Description

The AED3_SSR.sim() is used to conduct the adaptive enrichment design with Sample Size Re-estimation, in which futility and efficacy stopping boundaries are used to guide the adaptive enrichment process. For the adaptively enriched subgroup, we re-estimate the sample size to maintain an adequate conditional power meanwhile protect the overall Type I error rate.

Usage

1
2
AED3_SSR.sim(N1, rho, alpha, beta, theta, theta0, sigma0, pstar, nSim,
  Seed)

Arguments

N1

The sample size used at the first stage

rho

The proportion of subgroup 1 among the overall patients

alpha

The overall Type I error rate

beta

The (1 - Power)

theta

The sizes of treatment effect in subgroups 1 and 2 with experimental treatment

theta0

The size of treatment effect in standard treatment

sigma0

The known variance of the treatment effect

pstar

The (1 - power) of accepting the null hypothesis at the interim analysis.

nSim

The number of simulated studies.

Seed

The random seed

Value

A list contains

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
N <- 310
rho <- 0.5
alpha <- 0.05
beta <- 0.2
theta <- c(0,0)
theta0 <- 0
sigma0 <- 1
pstar <- 0.20
nSim <- 100
Seed <- 6
res <- AED3_SSR.sim(N1 = N, rho = rho, alpha = alpha,
             beta = beta, theta = theta, theta0 = theta0,
             sigma0 = sigma0, pstar = pstar, nSim = nSim,
             Seed = Seed)

esDesign documentation built on May 2, 2019, 10:41 a.m.