R/next_gBOIN_continuous.R

Defines functions next_gBOIN_continuous

Documented in next_gBOIN_continuous

next_gBOIN_continuous <- function(target, n, y, d, mu_1 = 0.6 * target, mu_2 = 1.4 * target){
  ndose <- length(y)
  if (y[d]/n[d] <=(target+mu_1)/2&& d != ndose) {
    d = d + 1
  }
  else if (y[d]/n[d] >= (target+mu_2)/2 && d != 1) {
    d = d - 1
  }
  else {
    d = d
  }
  d
}

Try the UnifiedDoseFinding package in your browser

Any scripts or data that you put into this service are public.

UnifiedDoseFinding documentation built on Oct. 16, 2022, 1:10 a.m.