alphaspend: Function that calculates the upper boundaries for efficacy

Description Usage Arguments Value Examples

View source: R/sequential_design_classV2.4.R

Description

Calculates the upper boundaries for efficacy at each look time

Usage

1
alphaspend(levels, t, int = rep(500, length(t)), tol = 0.005)

Arguments

levels

The cumulative alpha spending at each look time

t

Normalized look times

int

The number of intervals the solution space is partitioned into

tol

Tolerance of the solution using uniroot

Value

numeric

Examples

1
2
3
4
f<- function(t) 0.025*t^4
t<-c(0.33,0.67,1)
cum_probs<-f(t)
alphaspend(levels=cum_probs,t,int=rep(500, length(t)),tol=0.005)

seqmon documentation built on Sept. 5, 2020, 1:06 a.m.