example_model {OncoBayes2}R Documentation

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


## get a list of available examples
example_model()

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

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


[Package OncoBayes2 version 0.8-9 Index]