strat_start {hctrial}R Documentation

Initializes a subspace stratified design before the start of the study.

Description

Initializes a subspace stratified design before the start of the study.

Usage

strat_start(p0_sub, p1_sub, distr_sub, alpha = 0.05, beta = 0.2)

Arguments

p0_sub

A vector, where the $i$-th entry corresponds to the response rate under the null for the $i$-th subtype.

p1_sub

A vector, where the $i$-th entry corresponds to the response rate under the alternative for the $i$-th subtype.

distr_sub

A vector, where the $i$-th entry corresponds to the prevalence of the $i$-th subtype in the population.

alpha

Specified type I error of the trial.

beta

Specified type II error of the trial.

Value

A list returning the arguments of the function and the preliminary design for starting the stratified trial.

Examples

p0_sub <- c(0.1, 0.3, 0.5)
p1_sub <- c(0.3, 0.5, 0.7)
distr_sub <- c(1/3, 1/3, 1/3)
strat_start(p0_sub, p1_sub, distr_sub)

[Package hctrial version 0.1.0 Index]