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.

# S3 method for ecmeta_jags
as.array(x, ...)

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

# S3 method for 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.