Learn R Programming

mcmcr (version 0.0.2)

as.mcmc: Coerce to an mcmc object

Description

Coerces MCMC objects to an mcmc object.

Usage

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

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

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

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

Arguments

x

object to coerce.

...

Unused.

Methods (by class)

  • mcarray: Coerces mcarray object (with 1 chain) to an mcmc object

  • mcmcarray: Coerces mcmcarray object (with 1 chain) to an mcmc object

  • mcmc.list: Coerces mcmc.list object (with 1 chain) to an mcmc object

  • mcmcr: Coerces mcmcr object (with 1 chain) to an mcmc object

See Also

coda::mcmc

Examples

Run this code
# NOT RUN {
as.mcmc(subset(mcmcr_example, chains = 1L))
# }

Run the code above in your browser using DataLab