1 main code

RSD.sim <- function(target, p.true, ncohort, cohortsize, maxt=1, prior.p=NA, accrual=3, maxpen=0.5, 
                    dist1=1, dist2=1,alpha=0.5,n.earlystop = 100, startdose = 1, 
                    p.saf = target-0.05, p.tox = target+0.05, cutoff.eli = 0.95, 
                    extrasafe = FALSE, offset = 0.05, ntrial = 1000, seed=123, design=1){
  
  
  gen.tite<-function(dist=1, n, pi, alpha=0.5, Tobs=1)
  {
    ############ subroutines ############
    weib<-function(n, pi, pihalft)
    {
      ## solve parameters for Weibull given pi=1-S(T) and phalft=1-S(T/2)
      alpha = log(log(1-pi)/log(1-pihalft))/log(2);
      lambda = -log(1-pi)/(Tobs^alpha);
      t = (-log(runif(n))/lambda)^(1/alpha);
      return(t);
    }
    
    llogit<-function(n, pi, pihalft)
    {
      ## solve parameters for log-logistic given pi=1-S(T) and phalft=1-S(T/2)
      alpha = log((1/(1-pi)-1)/(1/(1-pihalft)-1))/log(2);
      lambda = (1/(1-pi)-1)/(Tobs^alpha);
      t = ((1/runif(n)-1)/lambda)^(1/alpha);
      return(t);
    }
    ############ end of subroutines ############
    
    
    tox = rep(0, n); #DLT 여부
    t.tox = rep(0, n); #TTT생존시간
    
    #### uniform
    if(dist==1) {  #50% event in (0, 1/2T)
      tox = rbinom(n, 1, pi); #표본크기,시행횟수,발생확률
      ntox.st = sum(tox); #총 DLT 발생수
      t.tox[tox==0]=Tobs; #DLT가 발생하지 않은 경우, TTT=Tobs관찰시간
      t.tox[tox==1]=runif(ntox.st, 0, Tobs); #DLT 발생한 경우, TTT~Unif(0,관찰시간)
    }
    #### Weibull
    if(dist==2)
    {
      pihalft = alpha*pi;  # alpha*100% event in (0, 1/2T)
      t.tox = weib(n, pi, pihalft); #solve parameters for Weibull
      tox[t.tox<=Tobs]=1; #TTT가 1보다 작거나 같은 경우, DLT=1
      ntox.st = sum(tox); #총 DLT 발생수
      t.tox[tox==0]=Tobs; #DLT가 발생하지 않은 경우, TTT=관찰시간
    }
    #### log-logistic
    if(dist==3)
    {
      pihalft = alpha*pi;  # alpha*100% event in (0, 1/2T)
      t.tox = llogit(n, pi, pihalft); #solve parameters for log-logistic
      tox[t.tox<=Tobs]=1; #TTT가 1보다 작거나 같은 경우, DLT=1
      ntox.st = sum(tox); #총 DLT 발생수
      t.tox[tox==0]=Tobs; #DLT가 발생하지 않은 경우, TTT=관찰시간
    }
    return(list(tox=tox, t.tox=t.tox, ntox.st=ntox.st)); #DLT발생여부,TTT,총DLT발생수
  }
  
  R6=function(enroll, dlt, pend, d){ # 벡터(enroll,dlt), 상수(pend,d)
    mtd=0;
    earlystop=0;
    pending=0;
    en=enroll[d]; #용량 d를 할당받은 인원 수
    dl=dlt[d]; #용량 d에서 나타난 dlt 수
    pe=pend[d];
    if(en==1){d=d
    } else if(en==2){
      if(dl==2){if(d==1){earlystop=1;} else {if(enroll[d-1]==6){mtd=d-1;earlystop=1;} else {d=d-1;}}
      }else{d=d;}
    } else if(en==3){
      if(dl>=2){if(d==1){earlystop=1;} else {if(enroll[d-1]==6){mtd=d-1;earlystop=1;} else {d=d-1;}}
      }else if(dl==0 && pe==0){if(d==ndose){mtd=d;earlystop=1;}else{d=d+1;}
      }else{d=d;}
    } else if(en==4){
      if(dl>=2){if(d==1){earlystop=1;} else {if(enroll[d-1]==6){mtd=d-1;earlystop=1;} else {d=d-1;}}
      }else if(dl==0 && pe==0){if(d==ndose){mtd=d;earlystop=1;}else{d=d+1;}
      }else{d=d;}
    } else if(en==5){
      if(dl>=2){if(d==1){earlystop=1;} else {if(enroll[d-1]==6){mtd=d-1;earlystop=1;} else {d=d-1;}}
      }else if(dl==0 && pe==0){if(d==ndose){mtd=d;earlystop=1;}else{d=d+1;}
      }else{d=d;}
    } else{
      if(dl>=2){if(d==1){earlystop=1;} else {if(enroll[d-1]==6){mtd=d-1;earlystop=1;} else {d=d-1;}}
      }else if(dl<=1 && pe==0){if(d==ndose){mtd=d;earlystop=1;}else{d=d+1;}
      }else if(dl==0 && pe==1){if(d==ndose){mtd=d;earlystop=1;}else{d=d+1;}
      }else{pending=1;}
    }
    out=list(d=d,mtd=mtd,earlystop=earlystop,pending=pending)
    return(out)
  }
  
  ### simple error checking
  if(target<0.05) {cat("Error: the target is too low! \n"); return();}
  if(target>0.6)  {cat("Error: the target is too high! \n"); return();}
  if((target-p.saf)<(0.1*target)) {cat("Error: the probability deemed safe cannot be higher than or too close to the target! \n"); return();}
  if((p.tox-target)<(0.1*target)) {cat("Error: the probability deemed toxic cannot be lower than or too close to the target! \n"); return();}
  if(p.saf<0.05) {cat("Error: the lower interval boundary cannot be too close to 0! \n"); return();}
  if(p.tox>0.95) {cat("Error: the upper interval boundary cannot be too close to 1! \n"); return();}
  if(offset>=0.5) {cat("Error: the offset is too large! \n"); return();}
  if(!is.na(prior.p[1])){if(length(prior.p)!=3){cat("Error: The length of the prior probabilities should be 3! \n"); return();}}
  if(n.earlystop<=6) {cat("Warning: the value of n.earlystop is too low to ensure good operating characteristics. Recommend n.earlystop = 9 to 18 \n"); return();}
  if(is.na(maxpen)){maxpen=0.5;}
  if(maxpen<0 || maxpen>0.65) {cat("Error: the value of maxpen should lie within (0,0.65]!  \n"); return();}
  epi1<-target-p.saf;
  epi2<-p.tox-target;
  
  #set.seed(seed);
  if(is.na(prior.p[1])){prior.p = rep(1/3,3)} #useless?
  prior.p = prior.p/sum(prior.p) #useless?
  
  durationV = rep(0, ntrial); #useless?
  npendV = rep(0, ntrial); #useless?
  a<-b<-1 #useless?
  
  set.seed(6);
  ndose=length(p.true); 
  npts = ncohort*cohortsize;
  Y=matrix(rep(0, ndose*ntrial), ncol=ndose); # store toxicity outcome
  N=matrix(rep(0, ndose*ntrial), ncol=ndose); # store the number of patients
  dselect = rep(0, ntrial); # store the selected dose level
  ea = rep(0, ntrial);
  
  for(trial in 1:ntrial) #시험횟수만큼 진행
  {
    y=NULL;  #DLT여부 toxicity indicator for each subject
    dv=NULL;  #각 환자에게 할당된 용량 dose for each subject
    n.d = rep(0, ndose);  #각 용량에 배정된 환자 수 number of patient at each dose
    y.d = rep(0, ndose);  #각 용량에서 나타나는 DLT수 number of toxicity at each dose
    t.enter=NULL; #시험 참가 시간 time enter the study
    t.event=NULL; #생존시간 time to event
    t.decision = 0; #결정시간 decision making time
    d = startdose;  #현재의 용량 current dose level
    earlystop = 0; #조기종료 여부 indicate if trial stops early
    elimi = rep(0, ndose)
    npend = 0;
    
    
    for(i in 1:ncohort) #여러 개의 코호트
    {
      # generate data for the new patient
      for(j in 1:cohortsize) #한 코호트 안에서
      {
        if(j==1) { t.enter = c(t.enter, t.decision); } #첫 환자의 경우 시험참가시간=(결정시간=0)
        else { #다음 환자의 경우
          if(dist2==1){ t.enter = c(t.enter, t.enter[length(t.enter)] + runif(1, 0, 2/accrual))} #도착간격시간이 unif(평균=도착간격시간)을 따르는 경우 , 시험참가시간=(0, 0+runif, 0+runif+runif...)
          if(dist2==2){ t.enter = c(t.enter, t.enter[length(t.enter)] + rexp(1, rate=accrual))} #도착간격시간이 지수분포(평균=도착간격시간)를 따르는 경우, 시험참가시간=(0, 0+rexp, 0+rexp+rexp...)
          if(dist2==3){ t.enter = c(t.enter, t.enter[length(t.enter)] + rpois(1, lambda=1/accrual))}
        }
      }
      
      obscohort = gen.tite(dist1, cohortsize, p.true[d], alpha=alpha,T=maxt); #현재 용량에서 생존시간이 dist1을 따르고 코호트가 cohortsize명일 때, DLT 발생시점(발생하지 않은 경우 (t.tox)생존시간=관찰시간)
      t.event = c(t.event, obscohort$t.tox); #생존시간
      y = c(y, obscohort$tox); #DLT여부
      dv = c(dv, rep(d, cohortsize)); #각 환자에게 배정된 용량=현재 용량을 cohortsize명에게 할당
      t.decision = t.enter[length(t.enter)]; #결정시간=코호트 내 마지막 환자의 참가시점
      nobs=-1; pending=1;
      d.curr=d; #현재용량
      npend = npend-1; #npend=0-1
      
      
      while(pending==1)
      {
        npend = npend+1; #npend=0
        pending = 0; 
        if(i==ncohort) { t.decision = t.decision + maxt; } #마지막 코호트의 경우, 결정시간=마지막 환자의 참가시점+최대관찰시간
        else { #마지막 코호트가 아닌 경우, t.decision을 업데이트
          if(dist2==1){t.decision = t.decision + runif(1, 0, 2/accrual)} #n+1 코호트의 경우, n코호트의 마지막 환자 참가시점+도착간격시간(unif)=코호트 내 첫 환자의 참가시점
          if(dist2==2){t.decision = t.decision + rexp(1, rate=accrual)} #n+1 코호트의 경우, n코호트의 마지막 환자 참가시점+도착간격시간(exp)=코호트 내 첫 환자의 참가시점
          if(dist2==3){t.decision = t.decision + rpois(1, lambda=1/accrual)}
        }
        
        # determine which observation are observed
        delta = ((t.enter+t.event)<=t.decision); #시험참가시간+생존시간이 결정시간 이하인 경우(즉, 다음 환자가 들어오기 전 관찰이 끝난 경우), "TRUE"
        t = pmin(t.event, t.decision-t.enter, maxt);  ##생존시간, 결정시간-참가시간(새 환자가 들어오기까지의 관찰시간), 최대관찰시간 중 가장 작은 것 used for recording potential censoring time
        cset = (dv==d); #각 환자에게 할당된 용량이 현재의 용량과 같은 경우, "TRUE"
        delta.curr = delta[cset]; #현재 용량을 할당받은 사람 중 관찰완료는 "TRUE"
        t.curr = t[cset]; #현재 용량을 할당받은 사람들의 생존시간|중간관찰시간|최대관찰시간
        ntox.curr = sum((y[cset])[delta.curr==1]); #현재 용량을 할당받은 사람 중 관찰이 완료된 총 DLT 발생수
        #totalt = sum(t.curr[delta.curr==0])/maxt;
        totalt = t.curr[delta.curr==0] #관찰이 완료된 사람의 생존시간|중간관찰시간|최대관찰시간
        ##piecewise uniform weight(p.20)
        totalt = 3*prior.p[1]*totalt*(totalt<=maxt/3)+ #관찰시간이 최대관찰시간의 1/3 이하인 경우
          ((prior.p[1]-prior.p[2])*maxt+3*prior.p[2]*totalt)*(maxt/3<totalt & totalt<=2*maxt/3)+ #관찰시간이 최대관찰시간의 1/3이상, 2/3 이하인 경우
          ((prior.p[1]+prior.p[2]-2*prior.p[3])*maxt+3*prior.p[3]*totalt)*(2*maxt/3<totalt & totalt<=maxt) #관찰시간이 최대관찰시간의 2/3이상, 최대관찰시간 이하일 경우
        totalt = sum(totalt)/maxt #현재까지 관찰한 시간이 최대관찰시간의 몇 %만큼인지
        n.curr = sum(cset); #현재 용량을 할당받은 사람의 수
        n.pend = sum(delta[cset]==0); #현재 용량을 할당받은 사람 중 관찰이 완료되지 않은 사람 수
        nobs = sum(delta[cset]); #현재 용량을 할당받은 사람 중 관찰이 완료된 사람 수 
        
        #Enroll, DLT, Pend
        Enroll=rep(0,ndose);
        DLT=rep(0,ndose);
        Pend=rep(0,ndose);
        for(k in 1:ndose){ #n개 dose에 대해
          DLT[k] = sum(y[dv==k]); 
          Enroll[k] = sum(dv==k);
          Pend[k] = sum(delta[dv==k]==0);
        }
        
        #check whether the trial should be early terminated
        if(n.curr>=n.earlystop){break;} #현재 용량을 할당받은 사람의 수가 n.earlystop보다 많으면 조기종료
        
        
        #check whether the trial should be suspended
        if(n.pend<0) {pending=1;}
        else
        {
          y0<-ntox.curr #현재 용량을 할당받은 사람 중 관찰이 완료된 총 DLT 발생수
          n0<-n.curr-n.pend+totalt #유효인원수ESS
          
          #r6
          r6=R6(Enroll,DLT,Pend,d)
          
          earlystop=r6$earlystop;
          mtd=r6$mtd;
          pending=r6$pending;
          d=r6$d
          if(mtd>0){break;}
        }
      }
      if(earlystop==1){break;} #조기종료=1이면 조기종료
    }
    
    for(k in 1:ndose){ #n개 dose에 대해
      y.d[k] = sum(y[dv==k]); 
      n.d[k] = sum(dv==k);
    }
    
    npendV[trial]= npend; #각 trial에서 나타난 지연 수
    Y[trial, ] = y.d #각 trial에서 나타난 용량 별 DLT 수
    N[trial, ] = n.d #각 trial에서 나타난 용량 별 할당환자 수
    durationV[trial] = t.decision #각 trial의 duration
    
    if (mtd==0 & earlystop == 1) {ea[trial] = 1} 
    if (mtd>0) {dselect[trial]=mtd} #선택된 용량
  }

  selpercent = rep(0, ndose) #각 용량이 선택된 확률
  selpercent=rep(0, ndose);  
  nptsdose = apply(N,2,mean); #각 용량을 할당받은 평균 환자 수
  ntoxdose = apply(Y,2,mean); #각 용량을 할당받고 DLT가 나타난 평균 
  
  for(i in 1:ndose) {selpercent[i]=sum(dselect==i)/ntrial*100; }
  
  
  dist=abs(p.true-target);
  realmtd=p.true[which(min(dist)==dist)];
  
  if(length(which(p.true==realmtd))>0) # if MTD exists, calculate risk of overdosing
  {
    if (which(p.true==realmtd) == ndose-1) {
      overdosing50=mean(N[,p.true>realmtd]>0.5*npts)*100;
      overdosing60=mean(N[,p.true>realmtd]>0.6*npts)*100;
      overdosing80=mean(N[,p.true>realmtd]>0.8*npts)*100;
    } else {
      overdosing50=mean(rowSums(N[,p.true>realmtd])>0.5*npts)*100;
      overdosing60=mean(rowSums(N[,p.true>realmtd])>0.6*npts)*100;
      overdosing80=mean(rowSums(N[,p.true>realmtd])>0.8*npts)*100;
    }
    
    out=list(selpercent=selpercent, npatients=nptsdose, ntox=ntoxdose, totaltox=sum(Y)/ntrial, totaln=sum(N)/ntrial,
             percentstop=sum(ea)/ntrial*100, poorallocation=mean(N[, p.true==realmtd]<npts/ndose)*100,
             overdose50=overdosing50, overdose60=overdosing60, overdose80=overdosing80, duration=mean(durationV),sdduration=sqrt(var(durationV)),simu.setup=data.frame(target=target, p.true=p.true, ncohort=ncohort, cohortsize = cohortsize,
                                                                                                                                                                       startdose = startdose,p.saf = p.saf, p.tox = p.tox, cutoff.eli = cutoff.eli, extrasafe = extrasafe, offset = offset,
                                                                                                                                                                       ntrial = ntrial, dose=1:ndose),flowchart=TRUE);
  }
  else {
    out=list(selpercent=selpercent, npatients=nptsdose, ntox=ntoxdose, totaltox=sum(Y)/ntrial, totaln=sum(N)/ntrial,
             percentstop=sum(ea)/ntrial*100, duration=mean(durationV),sdduration=sqrt(var(durationV)),simu.setup=data.frame(target=target, p.true=p.true, ncohort=ncohort, cohortsize = cohortsize,
                                                                                                                                      startdose = startdose,p.saf = p.saf, p.tox = p.tox, cutoff.eli = cutoff.eli, extrasafe = extrasafe, offset = offset, ntrial = ntrial,
                                                                                                                                      dose=1:ndose),flowchart=TRUE);
  }
  return(out);
  
}

2 simulation

2.1 setup

target<-0.2
P<-matrix(0,5,6)

## Six fixed scenarios in the paper 
P[1,]<-c(0.05,0.10,0.20,0.30,0.50,0.70)
P[2,]<-c(0.30,0.40,0.52,0.61,0.76,0.87)
P[3,]<-c(0.05,0.06,0.08,0.11,0.19,0.34)
P[4,]<-c(0.06,0.08,0.12,0.18,0.40,0.71)
P[5,]<-c(0.00,0.00,0.03,0.05,0.11,0.22)

2.2 start

c.uni.21.c1=list(NULL,NULL,NULL,NULL,NULL)
c.uni.14.c1=list(NULL,NULL,NULL,NULL,NULL)
c.uni.7.c1=list(NULL,NULL,NULL,NULL,NULL)
c.wei.21.c1=list(NULL,NULL,NULL,NULL,NULL)
c.wei.14.c1=list(NULL,NULL,NULL,NULL,NULL)
c.wei.7.c1=list(NULL,NULL,NULL,NULL,NULL)

c.uni.21.c3=list(NULL,NULL,NULL,NULL,NULL)
c.uni.14.c3=list(NULL,NULL,NULL,NULL,NULL)
c.uni.7.c3=list(NULL,NULL,NULL,NULL,NULL)
c.wei.21.c3=list(NULL,NULL,NULL,NULL,NULL)
c.wei.14.c3=list(NULL,NULL,NULL,NULL,NULL)
c.wei.7.c3=list(NULL,NULL,NULL,NULL,NULL)

for (i in 1:5){
  c.uni.21.c1[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=1,ncohort=36,
                           P[i,],dist1=1,accrual=1);
  c.uni.14.c1[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=1,ncohort=36,
                           P[i,],dist1=1,accrual=2);
  c.uni.7.c1[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=1,ncohort=36,
                           P[i,],dist1=1,accrual=3);
  c.wei.21.c1[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=1,ncohort=36,
                           P[i,],dist1=2,accrual=1);
  c.wei.14.c1[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=1,ncohort=36,
                           P[i,],dist1=2,accrual=2);
  c.wei.7.c1[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=1,ncohort=36,
                           P[i,],dist1=2,accrual=3);
  c.uni.21.c3[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=3,ncohort=12,
                           P[i,],dist1=1,accrual=1);
  c.uni.14.c3[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=3,ncohort=12,
                           P[i,],dist1=1,accrual=2);
  c.uni.7.c3[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=3,ncohort=12,
                           P[i,],dist1=1,accrual=3);
  c.wei.21.c3[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=3,ncohort=12,
                           P[i,],dist1=2,accrual=1);
  c.wei.14.c3[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=3,ncohort=12,
                           P[i,],dist1=2,accrual=2);
  c.wei.7.c3[[i]]=RSD.sim(target,ntrial=1000,dist2=2,
                           cohortsize=3,ncohort=12,
                           P[i,],dist1=2,accrual=3);
}

c.uni.21.c1
## [[1]]
## [[1]]$selpercent
## [1] 11.1 28.9 31.2 21.6  3.4  0.0
## 
## [[1]]$npatients
## [1] 4.687 4.949 4.577 2.975 1.045 0.125
## 
## [[1]]$ntox
## [1] 0.259 0.496 0.899 0.875 0.544 0.091
## 
## [[1]]$totaltox
## [1] 3.164
## 
## [[1]]$totaln
## [1] 18.358
## 
## [[1]]$percentstop
## [1] 3.8
## 
## [[1]]$poorallocation
## [1] 42.9
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 19.41528
## 
## [[1]]$sdduration
## [1] 7.186943
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 31.2 10.0  1.1  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 4.725 2.100 0.516 0.051 0.003 0.000
## 
## [[2]]$ntox
## [1] 1.437 0.824 0.272 0.030 0.002 0.000
## 
## [[2]]$totaltox
## [1] 2.565
## 
## [[2]]$totaln
## [1] 7.395
## 
## [[2]]$percentstop
## [1] 57.7
## 
## [[2]]$poorallocation
## [1] 51.5
## 
## [[2]]$overdose50
## [1] 0.1
## 
## [[2]]$overdose60
## [1] 0.1
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 7.726212
## 
## [[2]]$sdduration
## [1] 5.622241
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  5.2  6.3 10.7 23.5 33.4 17.5
## 
## [[3]]$npatients
## [1] 4.635 4.552 4.418 4.367 4.037 2.366
## 
## [[3]]$ntox
## [1] 0.249 0.292 0.366 0.487 0.776 0.828
## 
## [[3]]$totaltox
## [1] 2.998
## 
## [[3]]$totaln
## [1] 24.375
## 
## [[3]]$percentstop
## [1] 3.4
## 
## [[3]]$poorallocation
## [1] 48.2
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 25.8831
## 
## [[3]]$sdduration
## [1] 8.559914
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  7.5 12.4 21.3 42.9 11.2  0.1
## 
## [[4]]$npatients
## [1] 4.617 4.603 4.537 4.168 2.614 0.428
## 
## [[4]]$ntox
## [1] 0.272 0.384 0.546 0.745 1.074 0.307
## 
## [[4]]$totaltox
## [1] 3.328
## 
## [[4]]$totaln
## [1] 20.967
## 
## [[4]]$percentstop
## [1] 4.5
## 
## [[4]]$poorallocation
## [1] 43.8
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 22.29232
## 
## [[4]]$sdduration
## [1] 8.037633
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  0.9  2.9 11.8 32.8 51.5
## 
## [[5]]$npatients
## [1] 4.278 4.297 4.451 4.708 5.026 4.131
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.101 0.246 0.553 0.933
## 
## [[5]]$totaltox
## [1] 1.833
## 
## [[5]]$totaln
## [1] 26.891
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 61.2
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 27.99627
## 
## [[5]]$sdduration
## [1] 5.634655
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.uni.14.c1
## [[1]]
## [[1]]$selpercent
## [1] 11.4 28.2 31.6 23.2  1.7  0.0
## 
## [[1]]$npatients
## [1] 5.398 5.282 4.554 2.860 1.001 0.060
## 
## [[1]]$ntox
## [1] 0.295 0.569 0.894 0.846 0.525 0.041
## 
## [[1]]$totaltox
## [1] 3.17
## 
## [[1]]$totaln
## [1] 19.155
## 
## [[1]]$percentstop
## [1] 3.9
## 
## [[1]]$poorallocation
## [1] 40.5
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 11.25122
## 
## [[1]]$sdduration
## [1] 4.344853
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.4  7.9  0.8  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 4.831 1.881 0.334 0.029 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.465 0.758 0.174 0.016 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.413
## 
## [[2]]$totaln
## [1] 7.075
## 
## [[2]]$percentstop
## [1] 58.9
## 
## [[2]]$poorallocation
## [1] 48.4
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 3.940213
## 
## [[2]]$sdduration
## [1] 2.932789
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  4.2  7.3  9.7 23.1 33.6 17.9
## 
## [[3]]$npatients
## [1] 5.426 5.220 4.956 4.613 4.050 2.447
## 
## [[3]]$ntox
## [1] 0.298 0.322 0.409 0.485 0.770 0.830
## 
## [[3]]$totaltox
## [1] 3.114
## 
## [[3]]$totaln
## [1] 26.712
## 
## [[3]]$percentstop
## [1] 3.8
## 
## [[3]]$poorallocation
## [1] 46.9
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 15.87804
## 
## [[3]]$sdduration
## [1] 5.325819
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  6.3 15.6 19.5 41.7 12.6  0.1
## 
## [[4]]$npatients
## [1] 5.391 5.280 4.845 4.083 2.489 0.408
## 
## [[4]]$ntox
## [1] 0.317 0.404 0.640 0.706 0.974 0.295
## 
## [[4]]$totaltox
## [1] 3.336
## 
## [[4]]$totaln
## [1] 22.496
## 
## [[4]]$percentstop
## [1] 4.2
## 
## [[4]]$poorallocation
## [1] 43.6
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 13.1999
## 
## [[4]]$sdduration
## [1] 4.765894
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.1  3.4 13.1 33.9 48.3
## 
## [[5]]$npatients
## [1] 5.312 5.277 5.348 5.378 5.286 4.165
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.152 0.297 0.602 0.973
## 
## [[5]]$totaltox
## [1] 2.024
## 
## [[5]]$totaln
## [1] 30.766
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 53.3
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 17.98716
## 
## [[5]]$sdduration
## [1] 3.271674
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.uni.7.c1
## [[1]]
## [[1]]$selpercent
## [1] 11.0 28.8 32.7 20.9  4.0  0.1
## 
## [[1]]$npatients
## [1] 5.758 5.612 4.642 2.821 0.978 0.114
## 
## [[1]]$ntox
## [1] 0.296 0.581 0.935 0.850 0.460 0.081
## 
## [[1]]$totaltox
## [1] 3.203
## 
## [[1]]$totaln
## [1] 19.925
## 
## [[1]]$percentstop
## [1] 2.5
## 
## [[1]]$poorallocation
## [1] 38.5
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 8.625446
## 
## [[1]]$sdduration
## [1] 3.228311
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.8  9.0  1.1  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 4.866 1.881 0.385 0.039 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.447 0.754 0.194 0.022 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.417
## 
## [[2]]$totaln
## [1] 7.171
## 
## [[2]]$percentstop
## [1] 57.1
## 
## [[2]]$poorallocation
## [1] 47.1
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 2.858401
## 
## [[2]]$sdduration
## [1] 2.174426
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  5.1  7.4 12.1 23.0 31.4 17.6
## 
## [[3]]$npatients
## [1] 5.762 5.543 5.265 4.763 3.919 2.325
## 
## [[3]]$ntox
## [1] 0.298 0.342 0.428 0.533 0.741 0.771
## 
## [[3]]$totaltox
## [1] 3.113
## 
## [[3]]$totaln
## [1] 27.577
## 
## [[3]]$percentstop
## [1] 2.9
## 
## [[3]]$poorallocation
## [1] 46.9
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 12.14465
## 
## [[3]]$sdduration
## [1] 4.136518
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  7.4 13.4 21.9 41.1 11.7  0.2
## 
## [[4]]$npatients
## [1] 5.705 5.466 4.958 4.118 2.308 0.333
## 
## [[4]]$ntox
## [1] 0.348 0.454 0.601 0.726 0.926 0.245
## 
## [[4]]$totaltox
## [1] 3.3
## 
## [[4]]$totaln
## [1] 22.888
## 
## [[4]]$percentstop
## [1] 4.3
## 
## [[4]]$poorallocation
## [1] 42.9
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 9.964285
## 
## [[4]]$sdduration
## [1] 3.671217
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.4  4.5 12.0 30.4 51.2
## 
## [[5]]$npatients
## [1] 5.776 5.717 5.734 5.632 5.358 4.331
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.210 0.329 0.585 0.912
## 
## [[5]]$totaltox
## [1] 2.036
## 
## [[5]]$totaln
## [1] 32.548
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 46.3
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 14.37937
## 
## [[5]]$sdduration
## [1] 2.671015
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.wei.21.c1
## [[1]]
## [[1]]$selpercent
## [1] 10.7 29.7 30.9 22.9  2.7  0.1
## 
## [[1]]$npatients
## [1] 4.664 4.944 4.647 3.002 1.133 0.098
## 
## [[1]]$ntox
## [1] 0.229 0.520 0.957 0.876 0.565 0.066
## 
## [[1]]$totaltox
## [1] 3.213
## 
## [[1]]$totaln
## [1] 18.488
## 
## [[1]]$percentstop
## [1] 3
## 
## [[1]]$poorallocation
## [1] 43.2
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 19.55359
## 
## [[1]]$sdduration
## [1] 7.181207
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 31.3 10.3  1.0  0.1  0.0  0.0
## 
## [[2]]$npatients
## [1] 4.754 2.093 0.536 0.042 0.003 0.000
## 
## [[2]]$ntox
## [1] 1.409 0.838 0.273 0.027 0.002 0.000
## 
## [[2]]$totaltox
## [1] 2.549
## 
## [[2]]$totaln
## [1] 7.428
## 
## [[2]]$percentstop
## [1] 57.3
## 
## [[2]]$poorallocation
## [1] 52.5
## 
## [[2]]$overdose50
## [1] 0.1
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 7.710004
## 
## [[2]]$sdduration
## [1] 5.526757
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  3.7  6.4 12.1 22.4 32.1 19.8
## 
## [[3]]$npatients
## [1] 4.582 4.528 4.582 4.462 4.057 2.417
## 
## [[3]]$ntox
## [1] 0.253 0.278 0.394 0.520 0.768 0.811
## 
## [[3]]$totaltox
## [1] 3.024
## 
## [[3]]$totaln
## [1] 24.628
## 
## [[3]]$percentstop
## [1] 3.5
## 
## [[3]]$poorallocation
## [1] 47.7
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 26.21784
## 
## [[3]]$sdduration
## [1] 8.539064
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  7.3 15.1 20.3 38.6 14.4  0.2
## 
## [[4]]$npatients
## [1] 4.658 4.705 4.588 4.113 2.631 0.519
## 
## [[4]]$ntox
## [1] 0.276 0.406 0.588 0.710 1.019 0.374
## 
## [[4]]$totaltox
## [1] 3.373
## 
## [[4]]$totaln
## [1] 21.214
## 
## [[4]]$percentstop
## [1] 4.1
## 
## [[4]]$poorallocation
## [1] 43.2
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 22.55496
## 
## [[4]]$sdduration
## [1] 8.242518
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.6  4.0 13.2 30.2 51.0
## 
## [[5]]$npatients
## [1] 4.261 4.226 4.533 4.769 4.934 3.995
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.163 0.272 0.581 0.879
## 
## [[5]]$totaltox
## [1] 1.895
## 
## [[5]]$totaln
## [1] 26.718
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 60.6
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 28.00919
## 
## [[5]]$sdduration
## [1] 5.808378
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.wei.14.c1
## [[1]]
## [[1]]$selpercent
## [1] 12.4 26.9 31.0 23.1  2.3  0.0
## 
## [[1]]$npatients
## [1] 5.392 5.282 4.458 2.817 1.017 0.071
## 
## [[1]]$ntox
## [1] 0.287 0.545 0.858 0.803 0.522 0.053
## 
## [[1]]$totaltox
## [1] 3.068
## 
## [[1]]$totaln
## [1] 19.037
## 
## [[1]]$percentstop
## [1] 4.3
## 
## [[1]]$poorallocation
## [1] 41.9
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 11.1041
## 
## [[1]]$sdduration
## [1] 4.50046
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.8  8.5  0.9  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 4.839 1.888 0.396 0.032 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.436 0.772 0.201 0.022 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.431
## 
## [[2]]$totaln
## [1] 7.155
## 
## [[2]]$percentstop
## [1] 57.8
## 
## [[2]]$poorallocation
## [1] 47.4
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 3.949356
## 
## [[2]]$sdduration
## [1] 2.933363
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  3.9  6.8 12.2 24.5 32.9 16.3
## 
## [[3]]$npatients
## [1] 5.379 5.211 5.040 4.723 3.993 2.295
## 
## [[3]]$ntox
## [1] 0.278 0.327 0.399 0.541 0.791 0.815
## 
## [[3]]$totaltox
## [1] 3.151
## 
## [[3]]$totaln
## [1] 26.641
## 
## [[3]]$percentstop
## [1] 3.3
## 
## [[3]]$poorallocation
## [1] 47
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 15.70676
## 
## [[3]]$sdduration
## [1] 5.205026
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  8.1 14.0 20.5 39.1 13.6  0.0
## 
## [[4]]$npatients
## [1] 5.378 5.137 4.761 4.055 2.439 0.389
## 
## [[4]]$ntox
## [1] 0.333 0.445 0.604 0.700 0.942 0.295
## 
## [[4]]$totaltox
## [1] 3.319
## 
## [[4]]$totaln
## [1] 22.159
## 
## [[4]]$percentstop
## [1] 4.7
## 
## [[4]]$poorallocation
## [1] 44.4
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 12.99841
## 
## [[4]]$sdduration
## [1] 4.933337
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.7  2.0 14.0 30.3 51.6
## 
## [[5]]$npatients
## [1] 5.273 5.242 5.351 5.346 5.301 4.199
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.167 0.277 0.604 0.906
## 
## [[5]]$totaltox
## [1] 1.954
## 
## [[5]]$totaln
## [1] 30.712
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 53.1
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 18.10374
## 
## [[5]]$sdduration
## [1] 3.322756
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.wei.7.c1
## [[1]]
## [[1]]$selpercent
## [1] 11.7 30.8 31.5 21.0  2.4  0.0
## 
## [[1]]$npatients
## [1] 5.742 5.544 4.623 2.694 0.880 0.070
## 
## [[1]]$ntox
## [1] 0.272 0.569 0.963 0.804 0.453 0.051
## 
## [[1]]$totaltox
## [1] 3.112
## 
## [[1]]$totaln
## [1] 19.553
## 
## [[1]]$percentstop
## [1] 2.6
## 
## [[1]]$poorallocation
## [1] 38.2
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 8.424935
## 
## [[1]]$sdduration
## [1] 3.20541
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.7  9.0  0.8  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 4.859 1.805 0.379 0.024 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.457 0.742 0.193 0.016 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.408
## 
## [[2]]$totaln
## [1] 7.067
## 
## [[2]]$percentstop
## [1] 57.5
## 
## [[2]]$poorallocation
## [1] 46.7
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 2.751609
## 
## [[2]]$sdduration
## [1] 2.127865
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  4.0  6.0 11.5 23.8 30.8 20.3
## 
## [[3]]$npatients
## [1] 5.712 5.566 5.287 4.899 4.072 2.412
## 
## [[3]]$ntox
## [1] 0.303 0.345 0.423 0.536 0.772 0.762
## 
## [[3]]$totaltox
## [1] 3.141
## 
## [[3]]$totaln
## [1] 27.948
## 
## [[3]]$percentstop
## [1] 3.5
## 
## [[3]]$poorallocation
## [1] 44.6
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 12.32396
## 
## [[3]]$sdduration
## [1] 4.109498
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  8.0 13.4 22.8 38.1 12.9  0.1
## 
## [[4]]$npatients
## [1] 5.725 5.444 4.961 4.037 2.237 0.391
## 
## [[4]]$ntox
## [1] 0.361 0.462 0.605 0.740 0.879 0.270
## 
## [[4]]$totaltox
## [1] 3.317
## 
## [[4]]$totaln
## [1] 22.795
## 
## [[4]]$percentstop
## [1] 4.7
## 
## [[4]]$poorallocation
## [1] 44.1
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 9.918937
## 
## [[4]]$sdduration
## [1] 3.7623
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.5  3.4 12.2 32.2 50.3
## 
## [[5]]$npatients
## [1] 5.697 5.667 5.750 5.689 5.417 4.285
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.195 0.288 0.575 0.961
## 
## [[5]]$totaltox
## [1] 2.019
## 
## [[5]]$totaln
## [1] 32.505
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 47.4
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 14.36321
## 
## [[5]]$sdduration
## [1] 2.47282
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      36          1         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      36          1         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      36          1         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      36          1         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      36          1         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.uni.21.c3
## [[1]]
## [[1]]$selpercent
## [1] 11.4 28.3 31.7 21.0  3.2  0.0
## 
## [[1]]$npatients
## [1] 5.154 5.205 4.830 3.309 1.341 0.141
## 
## [[1]]$ntox
## [1] 0.272 0.560 0.962 0.979 0.661 0.103
## 
## [[1]]$totaltox
## [1] 3.537
## 
## [[1]]$totaln
## [1] 19.98
## 
## [[1]]$percentstop
## [1] 4.3
## 
## [[1]]$poorallocation
## [1] 29.2
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 21.34453
## 
## [[1]]$sdduration
## [1] 8.425773
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 30.7 10.1  1.2  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 5.247 2.355 0.594 0.063 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.545 0.929 0.307 0.038 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.819
## 
## [[2]]$totaln
## [1] 8.259
## 
## [[2]]$percentstop
## [1] 58
## 
## [[2]]$poorallocation
## [1] 25.1
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 8.40836
## 
## [[2]]$sdduration
## [1] 5.627021
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  5.1  5.8 11.6 21.6 32.7 18.3
## 
## [[3]]$npatients
## [1] 5.118 4.920 4.788 4.665 4.272 2.745
## 
## [[3]]$ntox
## [1] 0.276 0.315 0.375 0.538 0.796 0.974
## 
## [[3]]$totaltox
## [1] 3.274
## 
## [[3]]$totaln
## [1] 26.508
## 
## [[3]]$percentstop
## [1] 3.6
## 
## [[3]]$poorallocation
## [1] 35.5
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 28.30546
## 
## [[3]]$sdduration
## [1] 9.57304
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  9.3 13.7 21.6 39.4 11.2  0.4
## 
## [[4]]$npatients
## [1] 5.148 5.163 4.719 4.350 2.955 0.549
## 
## [[4]]$ntox
## [1] 0.321 0.455 0.576 0.806 1.196 0.382
## 
## [[4]]$totaltox
## [1] 3.736
## 
## [[4]]$totaln
## [1] 22.884
## 
## [[4]]$percentstop
## [1] 4.2
## 
## [[4]]$poorallocation
## [1] 33.5
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 24.21912
## 
## [[4]]$sdduration
## [1] 9.189805
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.1  3.5 12.9 28.4 53.1
## 
## [[5]]$npatients
## [1] 4.932 4.917 5.007 5.130 5.304 4.437
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.164 0.273 0.608 0.945
## 
## [[5]]$totaltox
## [1] 1.99
## 
## [[5]]$totaln
## [1] 29.727
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 39.2
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 31.34201
## 
## [[5]]$sdduration
## [1] 6.379508
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.uni.14.c3
## [[1]]
## [[1]]$selpercent
## [1] 11.1 27.5 34.0 20.4  3.1  0.1
## 
## [[1]]$npatients
## [1] 5.688 5.526 4.911 3.183 1.131 0.123
## 
## [[1]]$ntox
## [1] 0.312 0.596 0.959 0.927 0.551 0.087
## 
## [[1]]$totaltox
## [1] 3.432
## 
## [[1]]$totaln
## [1] 20.562
## 
## [[1]]$percentstop
## [1] 3.8
## 
## [[1]]$poorallocation
## [1] 23.7
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 11.96221
## 
## [[1]]$sdduration
## [1] 4.458119
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.0  9.9  0.4  0.1  0.0  0.0
## 
## [[2]]$npatients
## [1] 5.397 2.244 0.501 0.021 0.003 0.000
## 
## [[2]]$ntox
## [1] 1.573 0.885 0.283 0.009 0.002 0.000
## 
## [[2]]$totaltox
## [1] 2.752
## 
## [[2]]$totaln
## [1] 8.166
## 
## [[2]]$percentstop
## [1] 57.6
## 
## [[2]]$poorallocation
## [1] 20.1
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 4.429341
## 
## [[2]]$sdduration
## [1] 2.971743
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  4.7  7.5 11.6 21.6 32.5 17.5
## 
## [[3]]$npatients
## [1] 5.631 5.526 5.274 4.869 4.245 2.604
## 
## [[3]]$ntox
## [1] 0.321 0.355 0.425 0.549 0.792 0.917
## 
## [[3]]$totaltox
## [1] 3.359
## 
## [[3]]$totaln
## [1] 28.149
## 
## [[3]]$percentstop
## [1] 3
## 
## [[3]]$poorallocation
## [1] 33.2
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 16.81818
## 
## [[3]]$sdduration
## [1] 5.451822
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  9.8 13.0 21.8 38.0 12.9  0.1
## 
## [[4]]$npatients
## [1] 5.679 5.475 4.956 4.212 2.637 0.540
## 
## [[4]]$ntox
## [1] 0.376 0.496 0.606 0.769 1.042 0.371
## 
## [[4]]$totaltox
## [1] 3.66
## 
## [[4]]$totaln
## [1] 23.499
## 
## [[4]]$percentstop
## [1] 4.4
## 
## [[4]]$poorallocation
## [1] 34
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 13.84291
## 
## [[4]]$sdduration
## [1] 5.244291
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.5  3.1 12.8 30.9 50.1
## 
## [[5]]$npatients
## [1] 5.619 5.628 5.616 5.595 5.508 4.575
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.176 0.256 0.618 0.994
## 
## [[5]]$totaltox
## [1] 2.044
## 
## [[5]]$totaln
## [1] 32.541
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 31.5
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 19.32238
## 
## [[5]]$sdduration
## [1] 3.524605
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.uni.7.c3
## [[1]]
## [[1]]$selpercent
## [1] 11.4 27.4 35.8 19.6  2.2  0.0
## 
## [[1]]$npatients
## [1] 5.898 5.646 4.887 3.093 1.041 0.087
## 
## [[1]]$ntox
## [1] 0.309 0.593 0.931 0.985 0.513 0.059
## 
## [[1]]$totaltox
## [1] 3.39
## 
## [[1]]$totaln
## [1] 20.652
## 
## [[1]]$percentstop
## [1] 3.6
## 
## [[1]]$poorallocation
## [1] 23.3
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 8.89228
## 
## [[1]]$sdduration
## [1] 3.382976
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 33.0  8.7  0.9  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 5.322 2.127 0.438 0.039 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.616 0.875 0.226 0.027 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.744
## 
## [[2]]$totaln
## [1] 7.926
## 
## [[2]]$percentstop
## [1] 57.4
## 
## [[2]]$poorallocation
## [1] 22.6
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 3.084729
## 
## [[2]]$sdduration
## [1] 2.166611
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  5.0  8.7  9.9 22.3 33.9 15.2
## 
## [[3]]$npatients
## [1] 5.889 5.598 5.274 4.764 4.143 2.544
## 
## [[3]]$ntox
## [1] 0.327 0.355 0.459 0.499 0.772 0.906
## 
## [[3]]$totaltox
## [1] 3.318
## 
## [[3]]$totaln
## [1] 28.212
## 
## [[3]]$percentstop
## [1] 4.7
## 
## [[3]]$poorallocation
## [1] 34.5
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 12.53497
## 
## [[3]]$sdduration
## [1] 4.535088
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  9.1 12.6 23.3 39.7 10.7  0.0
## 
## [[4]]$npatients
## [1] 5.832 5.577 5.061 4.263 2.505 0.426
## 
## [[4]]$ntox
## [1] 0.365 0.476 0.628 0.801 1.000 0.305
## 
## [[4]]$totaltox
## [1] 3.575
## 
## [[4]]$totaln
## [1] 23.664
## 
## [[4]]$percentstop
## [1] 4.4
## 
## [[4]]$poorallocation
## [1] 32.4
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 10.29353
## 
## [[4]]$sdduration
## [1] 3.829018
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  0.8  2.9 13.3 30.8 51.6
## 
## [[5]]$npatients
## [1] 5.844 5.835 5.880 5.838 5.625 4.644
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.186 0.296 0.624 1.000
## 
## [[5]]$totaltox
## [1] 2.106
## 
## [[5]]$totaln
## [1] 33.666
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 28.3
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 14.98298
## 
## [[5]]$sdduration
## [1] 2.449478
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.wei.21.c3
## [[1]]
## [[1]]$selpercent
## [1] 12.1 27.3 32.6 23.0  1.7  0.0
## 
## [[1]]$npatients
## [1] 5.157 5.340 4.869 3.300 1.380 0.093
## 
## [[1]]$ntox
## [1] 0.248 0.558 0.969 0.997 0.692 0.066
## 
## [[1]]$totaltox
## [1] 3.53
## 
## [[1]]$totaln
## [1] 20.139
## 
## [[1]]$percentstop
## [1] 3.3
## 
## [[1]]$poorallocation
## [1] 28.6
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 21.52665
## 
## [[1]]$sdduration
## [1] 8.146225
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.6  9.5  0.8  0.1  0.0  0.0
## 
## [[2]]$npatients
## [1] 5.319 2.451 0.618 0.051 0.003 0.000
## 
## [[2]]$ntox
## [1] 1.609 0.985 0.311 0.034 0.003 0.000
## 
## [[2]]$totaltox
## [1] 2.942
## 
## [[2]]$totaln
## [1] 8.442
## 
## [[2]]$percentstop
## [1] 57
## 
## [[2]]$poorallocation
## [1] 22.7
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 8.719037
## 
## [[2]]$sdduration
## [1] 5.71651
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  4.8  7.4 11.5 22.9 30.7 18.7
## 
## [[3]]$npatients
## [1] 5.082 5.157 4.887 4.653 4.251 2.754
## 
## [[3]]$ntox
## [1] 0.254 0.332 0.413 0.532 0.798 0.935
## 
## [[3]]$totaltox
## [1] 3.264
## 
## [[3]]$totaln
## [1] 26.784
## 
## [[3]]$percentstop
## [1] 2.5
## 
## [[3]]$poorallocation
## [1] 36.4
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 28.84125
## 
## [[3]]$sdduration
## [1] 9.263002
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  8.1 11.5 24.0 38.3 13.5  0.4
## 
## [[4]]$npatients
## [1] 5.100 5.010 4.830 4.443 2.937 0.633
## 
## [[4]]$ntox
## [1] 0.295 0.432 0.547 0.870 1.150 0.451
## 
## [[4]]$totaltox
## [1] 3.745
## 
## [[4]]$totaln
## [1] 22.953
## 
## [[4]]$percentstop
## [1] 4.2
## 
## [[4]]$poorallocation
## [1] 32.5
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 24.6547
## 
## [[4]]$sdduration
## [1] 8.815579
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.1  3.2 13.5 29.1 52.0
## 
## [[5]]$npatients
## [1] 4.926 4.899 5.043 5.037 5.322 4.410
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.158 0.268 0.592 0.987
## 
## [[5]]$totaltox
## [1] 2.005
## 
## [[5]]$totaln
## [1] 29.637
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 40
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 31.46151
## 
## [[5]]$sdduration
## [1] 6.403053
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.wei.14.c3
## [[1]]
## [[1]]$selpercent
## [1] 10.7 27.5 32.8 22.7  2.2  0.0
## 
## [[1]]$npatients
## [1] 5.667 5.544 4.851 3.225 1.194 0.084
## 
## [[1]]$ntox
## [1] 0.305 0.556 0.951 0.952 0.615 0.060
## 
## [[1]]$totaltox
## [1] 3.439
## 
## [[1]]$totaln
## [1] 20.565
## 
## [[1]]$percentstop
## [1] 4.1
## 
## [[1]]$poorallocation
## [1] 24.7
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 12.07709
## 
## [[1]]$sdduration
## [1] 4.588753
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.5  7.9  1.2  0.1  0.0  0.0
## 
## [[2]]$npatients
## [1] 5.283 2.115 0.441 0.057 0.006 0.000
## 
## [[2]]$ntox
## [1] 1.607 0.884 0.210 0.035 0.003 0.000
## 
## [[2]]$totaltox
## [1] 2.739
## 
## [[2]]$totaln
## [1] 7.902
## 
## [[2]]$percentstop
## [1] 58.3
## 
## [[2]]$poorallocation
## [1] 23.9
## 
## [[2]]$overdose50
## [1] 0.1
## 
## [[2]]$overdose60
## [1] 0.1
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 4.290432
## 
## [[2]]$sdduration
## [1] 2.975686
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  5.1  8.5 11.3 22.7 31.3 16.6
## 
## [[3]]$npatients
## [1] 5.643 5.544 5.178 4.785 4.077 2.544
## 
## [[3]]$ntox
## [1] 0.297 0.364 0.442 0.550 0.782 0.883
## 
## [[3]]$totaltox
## [1] 3.318
## 
## [[3]]$totaln
## [1] 27.771
## 
## [[3]]$percentstop
## [1] 3.6
## 
## [[3]]$poorallocation
## [1] 36.6
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 16.44652
## 
## [[3]]$sdduration
## [1] 5.615527
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  8.3 13.9 20.7 41.2 11.3  0.0
## 
## [[4]]$npatients
## [1] 5.706 5.487 4.989 4.248 2.685 0.441
## 
## [[4]]$ntox
## [1] 0.340 0.460 0.608 0.768 1.108 0.317
## 
## [[4]]$totaltox
## [1] 3.601
## 
## [[4]]$totaln
## [1] 23.556
## 
## [[4]]$percentstop
## [1] 4.6
## 
## [[4]]$poorallocation
## [1] 33.7
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 13.85909
## 
## [[4]]$sdduration
## [1] 5.1416
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.4  2.7 13.6 29.1 51.9
## 
## [[5]]$npatients
## [1] 5.625 5.631 5.643 5.637 5.535 4.581
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.194 0.277 0.657 1.008
## 
## [[5]]$totaltox
## [1] 2.136
## 
## [[5]]$totaln
## [1] 32.652
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 30.4
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 19.20339
## 
## [[5]]$sdduration
## [1] 3.460889
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE
c.wei.7.c3
## [[1]]
## [[1]]$selpercent
## [1] 11.7 30.7 31.4 20.2  2.3  0.0
## 
## [[1]]$npatients
## [1] 5.853 5.637 4.800 2.868 1.050 0.081
## 
## [[1]]$ntox
## [1] 0.312 0.596 0.987 0.864 0.518 0.058
## 
## [[1]]$totaltox
## [1] 3.335
## 
## [[1]]$totaln
## [1] 20.289
## 
## [[1]]$percentstop
## [1] 3.7
## 
## [[1]]$poorallocation
## [1] 25.3
## 
## [[1]]$overdose50
## [1] 0
## 
## [[1]]$overdose60
## [1] 0
## 
## [[1]]$overdose80
## [1] 0
## 
## [[1]]$duration
## [1] 8.741867
## 
## [[1]]$sdduration
## [1] 3.30933
## 
## [[1]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.10      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.20      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.50      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.70      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[1]]$flowchart
## [1] TRUE
## 
## 
## [[2]]
## [[2]]$selpercent
## [1] 32.0  8.4  0.7  0.0  0.0  0.0
## 
## [[2]]$npatients
## [1] 5.316 2.055 0.402 0.027 0.000 0.000
## 
## [[2]]$ntox
## [1] 1.598 0.839 0.208 0.016 0.000 0.000
## 
## [[2]]$totaltox
## [1] 2.661
## 
## [[2]]$totaln
## [1] 7.8
## 
## [[2]]$percentstop
## [1] 58.9
## 
## [[2]]$poorallocation
## [1] 22.8
## 
## [[2]]$overdose50
## [1] 0
## 
## [[2]]$overdose60
## [1] 0
## 
## [[2]]$overdose80
## [1] 0
## 
## [[2]]$duration
## [1] 3.007976
## 
## [[2]]$sdduration
## [1] 2.125971
## 
## [[2]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.30      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.52      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.61      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.76      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.87      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[2]]$flowchart
## [1] TRUE
## 
## 
## [[3]]
## [[3]]$selpercent
## [1]  5.6  9.5 10.1 23.5 32.3 15.9
## 
## [[3]]$npatients
## [1] 5.895 5.715 5.394 4.815 4.113 2.514
## 
## [[3]]$ntox
## [1] 0.297 0.355 0.485 0.540 0.772 0.868
## 
## [[3]]$totaltox
## [1] 3.317
## 
## [[3]]$totaln
## [1] 28.446
## 
## [[3]]$percentstop
## [1] 2.4
## 
## [[3]]$poorallocation
## [1] 35.5
## 
## [[3]]$overdose50
## [1] 0
## 
## [[3]]$overdose60
## [1] 0
## 
## [[3]]$overdose80
## [1] 0
## 
## [[3]]$duration
## [1] 12.59934
## 
## [[3]]$sdduration
## [1] 4.296612
## 
## [[3]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.19      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.34      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[3]]$flowchart
## [1] TRUE
## 
## 
## [[4]]
## [[4]]$selpercent
## [1]  7.4 14.7 21.9 40.0 12.2  0.2
## 
## [[4]]$npatients
## [1] 5.871 5.616 5.181 4.227 2.625 0.486
## 
## [[4]]$ntox
## [1] 0.348 0.430 0.642 0.761 1.049 0.335
## 
## [[4]]$totaltox
## [1] 3.565
## 
## [[4]]$totaln
## [1] 24.006
## 
## [[4]]$percentstop
## [1] 3.5
## 
## [[4]]$poorallocation
## [1] 33.8
## 
## [[4]]$overdose50
## [1] 0
## 
## [[4]]$overdose60
## [1] 0
## 
## [[4]]$overdose80
## [1] 0
## 
## [[4]]$duration
## [1] 10.45852
## 
## [[4]]$sdduration
## [1] 3.754993
## 
## [[4]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.06      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.08      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.12      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.18      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.40      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.71      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[4]]$flowchart
## [1] TRUE
## 
## 
## [[5]]
## [[5]]$selpercent
## [1]  0.0  1.6  3.0 11.9 31.3 50.8
## 
## [[5]]$npatients
## [1] 5.844 5.874 5.850 5.808 5.574 4.707
## 
## [[5]]$ntox
## [1] 0.000 0.000 0.187 0.276 0.582 1.026
## 
## [[5]]$totaltox
## [1] 2.071
## 
## [[5]]$totaln
## [1] 33.657
## 
## [[5]]$percentstop
## [1] 0
## 
## [[5]]$poorallocation
## [1] 26.7
## 
## [[5]]$overdose50
## [1] 0
## 
## [[5]]$overdose60
## [1] 0
## 
## [[5]]$overdose80
## [1] 0
## 
## [[5]]$duration
## [1] 14.97586
## 
## [[5]]$sdduration
## [1] 2.611955
## 
## [[5]]$simu.setup
##   target p.true ncohort cohortsize startdose p.saf p.tox cutoff.eli extrasafe
## 1    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 2    0.2   0.00      12          3         1  0.15  0.25       0.95     FALSE
## 3    0.2   0.03      12          3         1  0.15  0.25       0.95     FALSE
## 4    0.2   0.05      12          3         1  0.15  0.25       0.95     FALSE
## 5    0.2   0.11      12          3         1  0.15  0.25       0.95     FALSE
## 6    0.2   0.22      12          3         1  0.15  0.25       0.95     FALSE
##   offset ntrial dose
## 1   0.05   1000    1
## 2   0.05   1000    2
## 3   0.05   1000    3
## 4   0.05   1000    4
## 5   0.05   1000    5
## 6   0.05   1000    6
## 
## [[5]]$flowchart
## [1] TRUE

2.3 result

setwd("C:/paper_exponential")
library(erer)
## 필요한 패키지를 로딩중입니다: lmtest
## 필요한 패키지를 로딩중입니다: zoo
## 
## 다음의 패키지를 부착합니다: 'zoo'
## The following objects are masked from 'package:base':
## 
##     as.Date, as.Date.numeric
## Registered S3 method overwritten by 'quantmod':
##   method            from
##   as.zoo.data.frame zoo
write.list(c.uni.21.c1, file = "r3_uni_21_c1.csv")
write.list(c.uni.14.c1, file = "r3_uni_14_c1.csv")
write.list(c.uni.7.c1, file = "r3_uni_7_c1.csv")
write.list(c.wei.21.c1, file = "r3_wei_21_c1.csv")
write.list(c.wei.14.c1, file = "r3_wei_14_c1.csv")
write.list(c.wei.7.c1, file = "r3_wei_7_c1.csv")

write.list(c.uni.21.c3, file = "r3_uni_21_c3.csv")
write.list(c.uni.14.c3, file = "r3_uni_14_c3.csv")
write.list(c.uni.7.c3, file = "r3_uni_7_c3.csv")
write.list(c.wei.21.c3, file = "r3_wei_21_c3.csv")
write.list(c.wei.14.c3, file = "r3_wei_14_c3.csv")
write.list(c.wei.7.c3, file = "r3_wei_7_c3.csv")