Learn R Programming

crmPack (version 2.0.0)

h_next_best_eligible_doses: Get Eligible Doses from the Dose Grid.

Description

[Experimental]

Helper function that gets the eligible doses from the dose grid. The eligible doses are the doses which do not exceed a given doselimit. For placebo design, if safety allows (i.e. if there is at least one non-placebo dose which does not exceed the dose limit), the placebo dose is then excluded from the eligible doses.

Usage

h_next_best_eligible_doses(dose_grid, doselimit, placebo, levels = FALSE)

Value

A numeric vector with eligible doses or eligible dose levels if levels

flag is TRUE.

Arguments

dose_grid

(numeric)
all possible doses.

doselimit

(number)
the maximum allowed next dose.

placebo

(flag)
if TRUE the first dose level in the dose_grid is considered as placebo.

levels

(flag)
if TRUE the levels of eligible doses are returned, otherwise, the doses (default).

Examples

Run this code
dose_grid <- c(0.001, seq(25, 200, 25))
h_next_best_eligible_doses(dose_grid, 79, TRUE)
h_next_best_eligible_doses(dose_grid, 24, TRUE)

Run the code above in your browser using DataLab