getSmoothBounds: Get smooth parametric boundaries for efficacy and futility

Description Usage Arguments Value References Examples

View source: R/buildTrial.R

Description

A general parametric form for allocating alpha or creating futility boundaries. For details, see Fisher and Rosenblum (2016).

Usage

1
2
getSmoothBounds(n_per_stage, delta_vec, coefficients_vec, intercepts_vec,
  takeDiffs)

Arguments

n_per_stage

vector of sample sizes, or a vector proportional to these sample sizes

delta_vec

a vector with elements greater than or equal to 0, one for each boundary to be computed (e.g. one for H01, one for H02, and one for H0C).

coefficients_vec

a vector of constants, one for each boundary to be computed (e.g. one for H01, one for H02, and one for H0C)

intercepts_vec

a vector of constants to be added to the set to zero for efficacy boundaries

takeDiffs

set to TRUE if calculating efficacy boundaries

Value

A matrix with each row corresponding to one boundary (one hypothesis).

References

Aaron Fisher and Michael Rosenblum (2016). Stochastic Optimization of Adaptive Enrichment Designs for Two Subpopulations. http://biostats.bepress.com/jhubiostat/paper279/

Examples

1
2
3
4
5
6
7
getSmoothBounds(
	  n_per_stage=1:5,
	  intercepts_vec=c(0,0,1,1,0,1),
	  delta_vec=c(1,1,1,1,1,1),
	  coefficients_vec=c(1,1,1,1,2,2),
  takeDiffs=FALSE
	  )

aaronjfisher/designOptim documentation built on May 21, 2019, 8:35 a.m.