Learn R Programming

mcmcr (version 0.0.2)

as.mcmcr: Coerce to an mcmcr object

Description

Coerces MCMC objects to an mcmcr-object.

Usage

as.mcmcr(x, ...)

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

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

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

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

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

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

Arguments

x

object to coerce.

...

Unused.

Methods (by class)

  • list: Coerces list (of mcmcarray objects) to an mcmcr object

  • mcarray: Coerces mcarray object to an mcmcr object

  • mcmc: Coerces mcmc object to an mcmcr object

  • mcmc.list: Coerces mcmc.list object to an mcmcr object

  • mcmcarray: Coerces mcmcarray object to an mcmcr object

  • list: Coerces list (of mcmcr objects with the same parameters, chains and iterations) to an mcmcrs object

Examples

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

Run the code above in your browser using DataLab