Learn R Programming

MCMCprecision (version 0.4.2)

Precision of Discrete Parameters in Transdimensional MCMC

Description

Estimates the precision of transdimensional Markov chain Monte Carlo (MCMC) output, which is often used for Bayesian analysis of models with different dimensionality (e.g., model selection). Transdimensional MCMC (e.g., reversible jump MCMC) relies on sampling a discrete model-indicator variable to estimate the posterior model probabilities. If only few switches occur between the models, precision may be low and assessment based on the assumption of independent samples misleading. Based on the observed transition matrix of the indicator variable, the method of Heck, Overstall, Gronau, & Wagenmakers (2019, Statistics & Computing, 29, 631-643) draws posterior samples of the stationary distribution to (a) assess the uncertainty in the estimated posterior model probabilities and (b) estimate the effective sample size of the MCMC output.

Copy Link

Version

Install

install.packages('MCMCprecision')

Monthly Downloads

1,104

Version

0.4.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel W. Heck

Last Published

July 22nd, 2025

Functions in MCMCprecision (0.4.2)

summary.stationary

Summary for Posterior Model Probabilities
MCMCprecision-package

MCMCprecision: Precision of discrete parameters in transdimensional MCMC
best_models

Precision for the k Best-Performing Models
stationary_mle

MLE for stationary distribution of discrete MCMC variables
fit_dirichlet

Estimate Parameters of Dirichlet Distribution
rdirichlet

Random Sample from Dirichlet Distribution
transitions

Get matrix of observed transition frequencies
rmarkov

Generate a sample of a discrete-state Markov chain
stationary

Precision of stationary distribution for discrete MCMC variables