Learn R Programming

hierarchicalDS (version 3.0)

table.mcmc: function to export posterior summaries from an mcmc object to a table

Description

function to export posterior summaries from an mcmc object to a table

Usage

# S3 method for mcmc
table(MCMC, file = NULL, type = "csv", a = 0.05)

Arguments

MCMC

An mcmc object with columns referencing different parameter types (column names are used for plotting labels)

file

A file name to ouput to (including path); if null (default), outputs to screen

type

What type of table to produce (either "csv" or "tex")

a

Value to use for credible intervals. For example, alpha=0.05 results in 95% credible intervals