Learn R Programming

⚠️There's a newer version (1.7-1) of this package.Take me there.

MCMCpack (version 0.4-7)

Markov chain Monte Carlo (MCMC) Package

Description

This package contains functions for posterior simulation for a number of statistical models. All simulation is done in compiled C++ written in the Scythe Statistical Library Version 0.4. All models return coda mcmc objects that can then be summarized using coda functions or the coda menu interface. The package also contains some useful utility functions, including some additional PDFs and pseudo-random number generators for statistical distributions.

Copy Link

Version

Install

install.packages('MCMCpack')

Monthly Downloads

19,625

Version

0.4-7

License

GPL version 2 or newer

Maintainer

Andrew Martin

Last Published

August 27th, 2024

Functions in MCMCpack (0.4-7)

MCMCregress

Markov chain Monte Carlo for Gaussian Linear Regression
MCMCirt1d

Markov chain Monte Carlo for One Dimensional Item Response Theory Model
rwish

Generate Random Draw from Wishart Distribution
MCMChierEI

Markov chain Monte Carlo for Wakefield's Hierarchial Ecological Inference Model
MCMCbaselineEI

Markov chain Monte Carlo for Wakefield's Baseline Ecological Inference Model
tomogplot

Tomography Plot
dinvgamma

Evaluate the Density of the Inverse Gamma Distribution
MCMCpanel

Markov chain Monte Carlo for the General Linear Panel Model
MCMCprobit

Markov chain Monte Carlo for Probit Regression
read.Scythe

Read a Matrix from a File written by Scythe
dwish

Evaluate the Density of the Wishart Distribution
xpnd

Expand a Vector into a Symmetric Matrix
SupremeCourt

U.S. Supreme Court Vote Matrix
MCMCoprobit

Markov chain Monte Carlo for Ordered Probit Regression
mcmc2

Create Markov Chain Monte Carlo Objects
diwish

Evaluate the Density of the Inverse Wishart Distribution
rinvgamma

Generate Random Draw from Inverse Gamma Distribution
write.Scythe

Write a Matrix to a File to be Read by Scythe
MCMCfactanal

Markov chain Monte Carlo for Normal Theory Factor Analysis Model
MCMCpoisson

Markov chain Monte Carlo for Poisson Regression
Senate

106th U.S. Senate Roll Call Vote Matrix
dtomogplot

Dynamic Tomography Plot
riwish

Generate Random Draw from Inverse Wishart Distribution
MCMCirtKd

Markov chain Monte Carlo for K-Dimensional Item Response Theory Model
vech

Extract Lower Triangular Elements from a Symmetric Matrix
rnoncenhypergeom

Generate Random Draw from Noncentral Hypergeometric Distribution
MCMCordfactanal

Markov chain Monte Carlo for Ordinal Data Factor Analysis Model
mcmc2dataframe

Convert Markov Chain Monte Carlo Objects to Dataframes
check.parameters

MCMCpack Helper Function: Check Simulation Parameters
MCMCmixfactanal

Markov chain Monte Carlo for Mixed Data Factor Analysis Model
MCMClogit

Markov chain Monte Carlo for Logistic Regression
MCMCdynamicEI

Markov chain Monte Carlo for Quinn's Dynamic Ecological Inference Model
rdirichlet

Generate Random Draws from the Dirichlet Distribution
ddirichlet

Evaluate Density of Dirichlet Distribution
dnoncenhypergeom

Evaluate Density of Noncentral Hypergeometric Distribution