rand.prob {iAdapt} | R Documentation |
Calculates randomization probabilities and dose allocation for next patient
Description
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.
Usage
rand.prob(y.eff, d.safe)
Arguments
y.eff |
vector of all efficacy outcomes for each dose allocation |
d.safe |
vector of dose assignment |
Value
List object giving
Rand.Prob - randomization probability for each safe dose (from stage 1)
Next.Dose - the dose to enroll the next patient on
Examples
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)
[Package iAdapt version 2.0.1 Index]