This is the function for initializing a "Data" class object.
Data(
x = numeric(),
y = integer(),
ID = integer(),
cohort = integer(),
doseGrid = numeric(),
placebo = FALSE,
...
)
the initialized Data
object
the doses for the patients
the vector of toxicity events (0 or 1 integers). You can also normal numeric vectors, but these will then be converted to integers.
unique patient IDs (integer vector)
the cohort indices (sorted values from 0, 1, 2, ...)
the vector of all possible doses
logical value: if TRUE the first dose level in the grid is considered as PLACEBO
not used
Note that ID
and cohort
can be missing, then a warning
will be issued and the variables will be filled with default
IDs and best guesses, respectively.