coef.BayesFBHborrow {BayesFBHborrow}R Documentation

Extract mean posterior values

Description

S3 method for class "BayesFBHborrow", returns the mean posterior values for the fixed parameters

Usage

## S3 method for class 'BayesFBHborrow'
coef(object, ...)

Arguments

object

MCMC sample object from BayesFBHborrow()

...

other arguments, see coef.default()

Value

mean values of given samples

Examples

data(weibull_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(weibull_cc, NULL, tuning_parameters, 
                      initial_values = NULL,
                      iter = 10, warmup_iter = 1)

# Plot the posterior mean values of the fixed parameters
coef(out)

[Package BayesFBHborrow version 1.0.1 Index]