as.mcmcr: Convert to an mcmcr object

View source: R/as-mcmcr.R

as.mcmcrR Documentation

Convert to an mcmcr object

Description

Converts an MCMC object to an mcmcr-object().

Usage

as.mcmcr(x, ...)

## S3 method for class 'mcarray'
as.mcmcr(x, name = "par", ...)

## S3 method for class 'mcmcarray'
as.mcmcr(x, name = "par", ...)

## S3 method for class 'nlist'
as.mcmcr(x, ...)

## S3 method for class 'nlists'
as.mcmcr(x, ...)

## S3 method for class 'mcmc'
as.mcmcr(x, ...)

## S3 method for class 'mcmc.list'
as.mcmcr(x, ...)

## S3 method for class 'mcmcrs'
as.mcmcr(x, ...)

Arguments

x

An MCMC object.

...

Unused.

name

A string specifying the parameter name.

Value

An mcmcr object.

Methods (by class)

  • as.mcmcr(mcarray): Convert an mcarray object to an mcmcr object

  • as.mcmcr(mcmcarray): Convert an mcmcarray-object() to an mcmcr object

  • as.mcmcr(nlist): Convert an nlist::nlist-object() to an mcmcr object

  • as.mcmcr(nlists): Convert an nlist::nlists-object() to an mcmcr object

  • as.mcmcr(mcmc): Convert an coda::mcmc() object to an mcmcr object

  • as.mcmcr(mcmc.list): Convert an coda::mcmc.list() object to an mcmcr object

  • as.mcmcr(mcmcrs): Convert tan mcmcrs-object() to an mcmcr object

See Also

Other coerce: as.mcarray(), as.mcmcarray(), mcmcrs()

Examples

mcmc.list <- coda::as.mcmc.list(mcmcr::mcmcr_example)
as.mcmcr(mcmc.list)

mcmcr documentation built on April 3, 2025, 6:06 p.m.