rand.prob {iAdapt} | R Documentation |
Function rand.prob()
calculates the updated randomization probabilities based on observed efficacies up to that point.
It also gives the dose allocation for the next enrolled patient based on these probabilities.
rand.prob(y.eff, d.safe)
y.eff |
vector of all efficacy outcomes for each dose allocation |
d.safe |
vector of dose assignment |
List object giving
Rand.Prob - randomization probability for each safe dose (from stage 1)
Next.Dose - the dose to enroll the next patient on
y.eff <- c(9, 1, 0, 34, 10, 27, 38, 42, 60, 75, 48, 62)
d.safe <- c(1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4)
rand.prob(y.eff, d.safe)