Learn R Programming

mcmcr (version 0.6.1)

as.mcmcr: Convert to an mcmcr object

Description

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

Usage

as.mcmcr(x, ...)

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

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

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

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

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

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

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

Arguments

x

An MCMC object.

...

Unused.

name

A string specifying the parameter name.

Value

An mcmcr object.

Methods (by class)

See Also

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

Examples

Run this code
# NOT RUN {
mcmc.list <- coda::as.mcmc.list(mcmcr::mcmcr_example)
as.mcmcr(mcmc.list)
# }

Run the code above in your browser using DataLab