View source: R/sequential_design_classV2.5.R
alphaspend | R Documentation |
Calculates the upper boundaries for efficacy at each look time
alphaspend(levels, t, int = rep(500, length(t)), tol = 0.005)
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 |
numeric
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.