Convert the chains of a gibbs() fit to posterior or coda draws
Source:R/diagnostics.R
gibbs_draws.Rdposterior::as_draws_array() and posterior::as_draws() of a gibbs() fit give an
iterations x chains x components draws_array; coda::as.mcmc.list() gives one mcmc
object per chain, with the iteration numbers of the kept draws. Only the chains that ran
to the end enter (see mcmc_diagnostics()). They open the rest of both packages, such as
posterior::rstar(), posterior::rhat_nested() or coda::raftery.diag(), which
BreedingR does not implement. Both packages are suggested, not required.
Usage
# S3 method for class 'breeding_gibbs'
as_draws_array(x, ...)
# S3 method for class 'breeding_gibbs'
as_draws(x, ...)
# S3 method for class 'breeding_gibbs'
as.mcmc.list(x, ...)Arguments
- x
a
gibbs()fit- ...
unused