AED2_SSR.CP: Calculate the N2 and the critical value C in the Adaptive...

Description Usage Arguments Value Examples

View source: R/esDesign.R

Description

The AED2_SSR.CP() is used to calculate the sample size required at the second stage and the critical value used at the final analysis in the Adaptive Enrichment Design with Sample Size Re-estimation Procedure. In addition, this function can also used to conduct the conditional power analysis in terms of N2

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
AED2_SSR.CP(
  Z1 = NULL,
  delta = NULL,
  N1 = NULL,
  pstar,
  rho,
  epsilon,
  alpha,
  beta,
  N2 = NULL
)

Arguments

Z1

The test statistic obtained at the interim analysis

delta

The standardized size of treatment effect, which can be estimated by using (μ_{X} - μ_{Y})/√{σ^2}.

N1

The sample size used at the first stage

pstar

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

rho

The proportion of subgroup 1

epsilon

The threshold of the difference between subgroup-specific test statistics.

alpha

The overall Type I error rate

beta

The (1 - Power)

N2

The pre-specified sample size used at the second stage, which is used to conduct the conditional power analysis

Value

A list contains

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Z1 <- 1.974
delta <- 0.355
N1 <- 248
pstar <- 0.15
alpha <- 0.05
rho <- 0.5
epsilon <- 0.5
beta <- 0.20
N2 <- 104
res <- AED2_SSR.CP(Z1 = Z1, delta = delta, N1 = N1, pstar = pstar,
           alpha = alpha, rho = rho, epsilon = epsilon,
           beta = beta, N2 = N2)

esDesign documentation built on July 13, 2021, 9:06 a.m.