Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Data

Initialization function for the "Data" class


Description

This is the function for initializing a "Data" class object.

Usage

Data(x = numeric(), y = integer(), ID = integer(),
  cohort = integer(), doseGrid = numeric(), placebo = FALSE, ...)

Arguments

x

the doses for the patients

y

the vector of toxicity events (0 or 1 integers). You can also normal numeric vectors, but these will then be converted to integers.

ID

unique patient IDs (integer vector)

cohort

the cohort indices (sorted values from 0, 1, 2, ...)

doseGrid

the vector of all possible doses

placebo

logical value: if TRUE the first dose level in the grid is considered as PLACEBO

...

not used

Details

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.

Value

the initialized Data object


crmPack

Object-Oriented Implementation of CRM Designs

v1.0.0
GPL (>= 2)
Authors
Daniel Sabanes Bove [aut], Wai Yin Yeung [aut], Giuseppe Palermo [aut, cre], Thomas Jaki [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.