Learn R Programming

OncoBayes2 (version 0.9-3)

update.blrm_trial: 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 blrm_trial
update(object, ...)

Arguments

object

blrm_trial object

...

passed to default update command of blrm_exnex

Examples

Run this code
## 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)

Run the code above in your browser using DataLab