Learn R Programming

mcmcr (version 0.6.2)

combine_dimensions: Combine samples by dimensions

Description

Combines MCMC object samples by dimensions along along using fun.

Usage

combine_dimensions(x, fun = mean, along = NULL, ...)

Value

The MCMC object with reduced dimensions.

Arguments

x

An MCMC object

fun

The function to use when combining dimensions

along

A positive integer (or NULL) indicating the parameter dimension(s) to bind along.

...

Unused.

See Also

Other combine: combine_samples(), combine_samples_n()

Examples

Run this code
combine_dimensions(mcmcr_example$alpha)

Run the code above in your browser using DataLab