update.blrm_trial: Update data and/or prior of a BLRM trial

View source: R/update.R

update.blrm_trialR Documentation

Update data and/or prior of a BLRM trial

Description

  • Adds data rows to a blrm_trial object (add_data argument)

  • Replaces data of a blrm_trial object (data argument)

  • Sets the prior of a blrm_trial object (... argument will be passed to blrm_exnex)

Usage

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

Arguments

object

blrm_trial object

...

passed to default update command of blrm_exnex

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,
  OncoBayes2.MC.save_warmup = FALSE
)


# the combo2_trial example demonstrates the use of add_data of
# update.blrmfit
example_model("combo2_trial")

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


OncoBayes2 documentation built on April 11, 2025, 5:42 p.m.