Bayesian Methods in Phase I Trials and Small n Sequential Multiple Assignment Randomized Trials