summary.BayesFBHborrow {BayesFBHborrow}R Documentation

Summarize fixed MCMC results

Description

S3 method for with borrowing. Returns summary of mean, median and given percentiles for the one dimensional parameters.

Usage

## S3 method for class 'BayesFBHborrow'
summary(
  object,
  estimator = NULL,
  percentiles = c(0.025, 0.25, 0.75, 0.975),
  ...
)

Arguments

object

MCMC sample object from BayesFBHborrow()

estimator

The type of estimator to summarize, could be "fixed", "lambda", "lambda_0" or "s". The default is NULL and will print a summary of the output list.

percentiles

Given percentiles to output, default is c(0.025, 0.25, 0.75, 0.975)

...

other arguments, see summary.default

Value

summary of the given estimator

Examples

data(piecewise_exp_cc, package = "BayesFBHborrow")

# Set your tuning parameters
tuning_parameters <- list("Jmax" = 5,
                          "pi_b" = 0.5,
                          "cprop_beta" = 0.5)
                          
# run the MCMC sampler
out <- BayesFBHborrow(piecewise_exp_cc, NULL, tuning_parameters = tuning_parameters,
                      iter = 3, warmup_iter = 1)

# Create a summary of the output
summary(out$out, estimator = "out_fixed")

[Package BayesFBHborrow version 2.0.1 Index]