Learn R Programming

crmPack (version 2.0.0)

DataMixture-class: DataMixture

Description

[Stable]

DataMixture is a class for the data with mixture sharing. It inherits from Data and it contains additional information on the mixture sharing.

Usage

DataMixture(xshare = numeric(), yshare = integer(), ...)

.DefaultDataMixture()

Arguments

xshare

(numeric)
the doses for the share patients.

yshare

(integer)
the vector of toxicity events (0 or 1) for the share patients. You can also supply numeric vectors, but these will then be converted to integer internally.

...

parameters passed to Data().

Slots

xshare

(numeric)
the doses for the share patients.

yshare

(integer)
the vector of toxicity events (0 or 1) for the share patients.

nObsshare

(count)
number of share patients.

Examples

Run this code
my_data <- DataMixture(
  xshare = c(12, 14, 16, 18.0),
  yshare = c(0L, 1L, 1L, 1L),
  nObsshare = 4L,
  x = c(0.1, 0.5, 1.5),
  y = c(0, 0, 0),
  ID = 1:3,
  cohort = 1:3,
  doseGrid = c(0.1, 0.5, 1.5, 3, 6, seq(from = 10, to = 80, by = 2))
)
my_data

Run the code above in your browser using DataLab