update-DataDual-method: Updating 'DataDual' Objects

update,DataDual-methodR Documentation

Updating DataDual Objects

Description

[Stable]

A method that updates existing DataDual object with new data.

Usage

## S4 method for signature 'DataDual'
update(object, w, ..., check = TRUE)

Arguments

object

(DataDual)
object you want to update.

w

(numeric)
the continuous vector of biomarker values for all the patients in this update.

...

further arguments passed to Data update method update-Data.

check

(flag)
whether the validation of the updated object should be conducted. See help for update-Data for more details on the use case of this parameter.

Value

The new, updated DataDual object.

Examples

# Create some data of class 'DataDual'.
my_data <- DataDual(
  x = c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10),
  y = c(0, 0, 0, 0, 0, 0, 1, 0),
  w = rnorm(8),
  doseGrid = c(0.1, 0.5, 1.5, 3, 6, seq(from = 10, to = 80, by = 2))
)

# Update the data with a new cohort.
my_data1 <- update(my_data, x = 20, y = c(0, 1, 1), w = c(0.4, 1.2, 2.2))
my_data1

Roche/crmPack documentation built on April 30, 2024, 3:19 p.m.