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

prior_summary.blrmfit

Summarise model prior


Description

Extracts a summary of the prior in a structured data format.

Usage

## S3 method for class 'blrmfit'
prior_summary(object, digits = 2, ...)

Arguments

object

blrmfit (blrm_trial) object as returned from blrm_exnex (blrm_trial) analysis

digits

number of digits to show

...

ignored by the function

Details

The summary of the prior creates a structured representation of the specified prior from a blrm_exnex (blrm_trial) analysis.

Value

Returns an analysis specific list, which has it's own print function. The returned list contains arrays which represent the prior in a structured format.

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)

## run combo2 analysis which defines blrmfit model object
example_model("combo2")

prior_summary(blrmfit)

prior_sum  <- prior_summary(blrmfit)
names(prior_sum)

## the entries of the prior list are labelled arrays
dimnames(prior_sum$EX_mu_log_beta)

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