Learn R Programming

mcmcsae (version 0.6.0)

print.draws_summary: Print a summary of MCMC simulation results

Description

Display a summary of a draws object, output by MCMCsim.

Usage

# S3 method for draws_summary
print(x, digits = 3L, max.lines = 10L, tail = FALSE, sort = NULL, ...)

Arguments

x

an object of class draws_summary as output by summary.draws.

digits

number of digits to use, defaults to 3.

max.lines

maximum number of elements per vector parameter to display. If NULL, all elements are displayed.

tail

if TRUE the last instead of first max.lines of each component are displayed.

sort

column name on which to sort the output.

...

passed on to print.default.

Examples

Run this code
# NOT RUN {
ex <- mcmcsae_example()
sampler <- create_sampler(ex$model, data=ex$dat)
sim <- MCMCsim(sampler, store.all=TRUE)
print(summary(sim), sort="n_eff")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab