combine_dimensions: Combine samples by dimensions

View source: R/combine-dimensions.R

combine_dimensionsR Documentation

Combine samples by dimensions

Description

Combines MCMC object samples by dimensions along along using fun.

Usage

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

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.

Value

The MCMC object with reduced dimensions.

See Also

Other combine: combine_samples_n(), combine_samples()

Examples

combine_dimensions(mcmcr_example$alpha)

poissonconsulting/mcmcr documentation built on Jan. 18, 2024, 1:11 a.m.