## determine the dose level for the next cohort of new patients
ays <- c(0, 0, 1, 0, 0, 0, 0); ans <- c(3, 3, 6, 0, 0, 0, 0)
decision <- aCFO.next(target = 0.2, ays = ays, ans = ans, currdose = 3,
prior.para = list(alp.prior = 0.2, bet.prior = 0.8))
summary(decision)
ays <- c(3, 0, 0, 0, 0, 0, 0); ans <- c(3, 0, 0, 0, 0, 0, 0)
decision <- aCFO.next(target = 0.2, ays = ays, ans = ans, currdose = 1,
prior.para = list(alp.prior = 0.2, bet.prior = 0.8))
summary(decision)
ays <- c(0, 0, 0, 0, 0, 0, 3); ans <- c(3, 3, 3, 3, 3, 3, 3)
decision <- aCFO.next(target = 0.2, ays = ays, ans = ans, currdose = 7,
prior.para = list(alp.prior = 0.2, bet.prior = 0.8))
summary(decision)
Run the code above in your browser using DataLab