as.array.ecmeta: Convert object to array

Description Usage Arguments Value

Description

This is a helper function to convert a object to a 3-D array as required by bayesplot in order to diagnosis the Markov Chain Monte Carlo (MCMC) sampling. See bayesplot::MCMC for more information about the format of the array.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'ecmeta_jags'
as.array(x, ...)

## S3 method for class 'ecmeta_jags_prediction'
as.array(x, ...)

## S3 method for class 'ecmeta_ml_prediction'
as.array(x, ...)

Arguments

x

An object of the appropriate class.

...

Additional arguments to pass to coda::as.array.mcmc.list() other than drop, which is set to FALSE.

Value

A 3-D array in the format described in bayesplot::MCMC.


phcanalytics/ecmeta documentation built on Dec. 22, 2021, 7:48 a.m.