posterior_interval.blrmfit {OncoBayes2} | R Documentation |
Posterior intervals
Description
Posterior intervals of all model parameters.
Usage
## S3 method for class 'blrmfit'
posterior_interval(object, prob = 0.95, ...)
Arguments
object |
fitted model object |
prob |
central probability mass to report, i.e. the quantiles 0.5-prob/2 and 0.5+prob/2 are displayed. Multiple central widths can be specified. |
... |
not used in this function |
Details
Reports the quantiles of posterior parameters which correspond to the central probability mass specified. The output includes the posterior of the hyper-parameters and the posterior of each group estimate.
Value
Matrix of two columns for the central probability interval
prob
for all parameters of the model.
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)
example_model("single_agent", silent=TRUE)
posterior_interval(blrmfit)
## Recover user set sampling defaults
options(.user_mc_options)
[Package OncoBayes2 version 0.8-9 Index]