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

example_model

Runs example models


Description

Runs example models

Usage

example_model(topic, envir = parent.frame(), silent = FALSE)

Arguments

topic

example to run

envir

environment which the example is loaded into. Defaults to the caller environment.

silent

logical controlling if execution is run silently (defaults to FALSE)

Value

When topic is not specified a list of all possible topics is return. Whenever a valid topic is specified, the function inserts the example into the environment given and returns (invisibly) the updated environment.

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)


## get a list of available examples
example_model()

## run 3 component example
example_model("combo3")

## 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.