Learn R Programming

coda (version 0.19-4.1)

Output Analysis and Diagnostics for MCMC

Description

Provides functions for summarizing and plotting the output from Markov Chain Monte Carlo (MCMC) simulations, as well as diagnostic tests of convergence to the equilibrium distribution of the Markov chain.

Copy Link

Version

Install

install.packages('coda')

Monthly Downloads

135,178

Version

0.19-4.1

License

GPL (>= 2)

Maintainer

Last Published

January 31st, 2024

Functions in coda (0.19-4.1)

geweke.plot

Geweke-Brooks plot
time.mcmc

Time attributes for mcmc objects
coda.options

Options settings for the codamenu driver
HPDinterval

Highest Posterior Density intervals
gelman.diag

Gelman and Rubin's convergence diagnostic
effectiveSize

Effective sample size for estimating the mean
cumuplot

Cumulative quantile plot
codamenu

Main menu driver for the coda package
bugs2jags

Convert WinBUGS data file to JAGS data file
nchain

Dimensions of MCMC objects
autocorr

Autocorrelation function for Markov chains
crosscorr

Cross correlations for MCMC output
plot.mcmc

Summary plots of mcmc objects
densplot

Probability density function estimate from MCMC output
spectrum0

Estimate spectral density at zero
mcpar

Mcpar attribute of MCMC objects
crosscorr.plot

Plot image of correlation matrix
multi.menu

Choose multiple options from a menu
mcmc.subset

Extract or replace parts of MCMC objects
heidel.diag

Heidelberger and Welch's convergence diagnostic
gelman.plot

Gelman-Rubin-Brooks plot
read.coda

Read output files in CODA format
mcmcUpgrade

Upgrade mcmc objects in obsolete format
traceplot

Trace plot of MCMC output
spectrum0.ar

Estimate spectral density at zero
geweke.diag

Geweke's convergence diagnostic
summary.mcmc

Summary statistics for Markov Chain Monte Carlo chains
mcmc.convert

Conversions of MCMC objects
mcmc.list

Replicated Markov Chain Monte Carlo Objects
thin

Thinning interval
trellisplots

Trellis plots for mcmc objects
line

Simple linear regression example
raftery.diag

Raftery and Lewis's diagnostic
read.coda.interactive

Read CODA output files interactively
varnames

Named dimensions of MCMC objects
window.mcmc

Time windows for mcmc objects
read.and.check

Read data interactively and check that it satisfies conditions
mcmc

Markov Chain Monte Carlo Objects
read.openbugs

Read CODA output files produced by OpenBUGS
rejectionRate

Rejection Rate for Metropolis--Hastings chains
batchSE

Batch Standard Error
Cramer

The Cramer-von Mises Distribution
autocorr.diag

Autocorrelation function for Markov chains
as.ts.mcmc

Coerce mcmc object to time series
autocorr.plot

Plot autocorrelations for Markov Chains