Learn R Programming

geoRglm (version 0.9-16)

create.mcmc.coda: Create an mcmc object for the CODA package

Description

This function creates an mcmc object for the CODA package for output from the functions glsm.mcmc, binom.krige.bayes and pois.krige.bayes. The functions in CODA can then be used to investigate convergence and mixing of the MCMC algorithm.

Usage

create.mcmc.coda(x, mcmc.input)

Arguments

x

an output object from glsm.mcmc, binom.krige.bayes or pois.krige.bayes.

mcmc.input

input parameters for the MCMC algorithm. It can take an output from mcmc.control or a list with elements. Only thin and burn.in are used, and both have default values (thin=10, burn.in=0).

Value

An object of class mcmc to be used for CODA.

Examples

Run this code
# NOT RUN {
## see example in help file for glsm.mcmc
# }

Run the code above in your browser using DataLab