strat_start: Initializes a subspace stratified design before the start of...

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
3
4
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)

hctrial documentation built on May 1, 2019, 10:53 p.m.