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

update.blrmfit

Update data of a BLRM analysis


Description

Adds data rows to a blrm_exnex or blrm_trial analysis object.

Usage

## S3 method for class 'blrmfit'
update(object, ..., add_data)

Arguments

object

blrmfit analysis object

...

passed to default update command

The data in add_data will be combined with data in object using bind_rows. The indices for groups and stratums (if defined) are matched between add_data and the data of the analysis object.

Note that the add_data argument must be named explicitly as demonstrated in the example.

add_data

additional data added to analysis data of object

Examples

## Setting up dummy sampling for fast execution of example
## Please use 4 chains and 100x more warmup & iter in practice
.user_mc_options <- options(OncoBayes2.MC.warmup=10, OncoBayes2.MC.iter=20, OncoBayes2.MC.chains=1)

example_model("single_agent")

library(tibble)
new_cohort <- tibble(group_id="trial_A", drug_A=50, num_patients=4, num_toxicities=1)

## this would fail, since add_data argument must be named
## new_blrmfit <- update(blrmfit, new_cohort)
new_blrmfit <- update(blrmfit, add_data=new_cohort)

## Recover user set sampling defaults
options(.user_mc_options)

OncoBayes2

Bayesian Logistic Regression for Oncology Dose-Escalation Trials

v0.7-0
GPL (>= 3)
Authors
Novartis Pharma AG [cph], Sebastian Weber [aut, cre], Lukas A. Widmer [aut], Andrew Bean [aut], Trustees of Columbia University [cph] (R/stanmodels.R, configure, configure.win)
Initial release
2021-05-07

We don't support your browser anymore

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