SSR.sim: Conduct the simulation studies using SSR

Description Usage Arguments Value References Examples

View source: R/esDesign.R

Description

The SSR.sim() is used to implement the simulation studies based on the Sample Size Re-estimation Procedure.

Usage

1
SSR.sim(N, rho, alpha, beta, theta, theta0, sigma0, pstar, nSim, Seed)

Arguments

N

The sample size used at the first stage. Note that this N is not the initial total sample size calculated using the standard design

rho

The proportion of subgroup 1

alpha

The overall Type I error rate

beta

The (1 - Power)

theta

The sizes of treatment effects for subgroups 1 and 2 in the experimental arm

theta0

The size of treatment effect in the control arm

sigma0

The 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

References

Examples

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

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

Related to SSR.sim in esDesign...