Learn R Programming

OncoBayes2 (version 0.9-1)

nsamples.blrmfit: Return the number of posterior samples

Description

Return the number of posterior samples

Usage

# S3 method for blrmfit
nsamples(object, ...)

Arguments

object

fitted model object

...

not used in this function

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
)


## run single-agent analysis which defines blrmfit model object
example_model("single_agent", silent = TRUE)

nsamples(blrmfit)

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

Run the code above in your browser using DataLab