Learn R Programming

mcmcr (version 0.2.0)

mcmc_aperm: MCMC Object Transposition

Description

Transpose an MCMC object by permuting its parameter dimensions.

Usage

mcmc_aperm(x, perm, ...)

# S3 method for mcmcarray mcmc_aperm(x, perm = NULL, ...)

# S3 method for mcmc mcmc_aperm(x, perm = NULL, ...)

# S3 method for mcmc.list mcmc_aperm(x, perm = NULL, ...)

# S3 method for mcmcr mcmc_aperm(x, perm = NULL, ...)

# S3 method for mcmcrs mcmc_aperm(x, perm = NULL, ...)

Arguments

x

The MCMC object to transpose.

perm

A integer vector of the new order for the parameter dimensions. Missing parameter dimensions are added on the end. If perm = NULL (the default) the parameter dimensions are reversed.

...

Unused

Value

The modified MCMC object

Methods (by class)

  • mcmcarray: Transpose an mcmcarray object

  • mcmc: Transpose an mcmc object

  • mcmc.list: Transpose an mcmc.list object

  • mcmcr: Transpose an mcmcr object

  • mcmcrs: Transpose an mcmcrs object