Learn R Programming

mcmcr (version 0.0.2)

as.mcmcarray: Coerce to an mcmcarray object

Description

Coerces MCMC objects to an mcmcarray-object.

Usage

as.mcmcarray(x, ...)

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

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

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

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

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

Arguments

x

object to coerce.

...

Unused.

Methods (by class)

  • default: Coerces vector, matrix or array to an mcmcarray object

  • mcarray: Coerces mcarray object to an mcmcarray object

  • mcmc: Coerces mcmc object (with one parameter) to an mcmcarray object

  • mcmc.list: Coerces mcmc.list object (with one parameter) to an mcmcarray object

  • mcmcr: Coerces mcmcr object (with one parameter) to an mcmcarray object

Examples

Run this code
# NOT RUN {
as.mcmcarray(as.mcarray(mcmcr_example$beta))
# }

Run the code above in your browser using DataLab