rand.prob: Calculates randomization probabilities and dose allocation...

Description Usage Arguments Value Examples

View source: R/rand.prob.R

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

1
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

Examples

1
2
3
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)

iAdapt documentation built on Aug. 6, 2021, 9:08 a.m.