MCMCpack1.7-1 package

Markov Chain Monte Carlo (MCMC) Package

plotHDPChangepoint

Posterior Changepoint Probabilities from HDP-HMM

MCMCirtKd

Markov Chain Monte Carlo for K-Dimensional Item Response Theory Model

MCMCirtKdRob

Markov Chain Monte Carlo for Robust K-Dimensional Item Response Theory...

MCMClogit

Markov Chain Monte Carlo for Logistic Regression

MCMCmetrop1R

Metropolis Sampling from User-Written R function

MCMCmixfactanal

Markov Chain Monte Carlo for Mixed Data Factor Analysis Model

MCMCmnl

Markov Chain Monte Carlo for Multinomial Logistic Regression

MCMCnegbin

Markov Chain Monte Carlo for Negative Binomial Regression

MCMCnegbinChange

Markov Chain Monte Carlo for Negative Binomial Regression Changepoint ...

MCMCoprobit

Markov Chain Monte Carlo for Ordered Probit Regression

MCMCoprobitChange

Markov Chain Monte Carlo for Ordered Probit Changepoint Regression Mod...

MCMCordfactanal

Markov Chain Monte Carlo for Ordinal Data Factor Analysis Model

MCMCpaircompare

Markov Chain Monte Carlo for a Pairwise Comparisons Model with Probit ...

MCMCpaircompare2d

Markov Chain Monte Carlo for the Two-Dimensional Pairwise Comparisons ...

MCMCpaircompare2dDP

Markov Chain Monte Carlo for the Two-Dimensional Pairwise Comparisons ...

MCMCpoisson

Markov Chain Monte Carlo for Poisson Regression

MCMCpoissonChange

Markov Chain Monte Carlo for a Poisson Regression Changepoint Model

MCMCprobit

Markov Chain Monte Carlo for Probit Regression

MCMCprobitChange

Markov Chain Monte Carlo for a linear Gaussian Multiple Changepoint Mo...

MCMCquantreg

Bayesian quantile regression using Gibbs sampling

MCMCregress

Markov Chain Monte Carlo for Gaussian Linear Regression

MCMCregressChange

Markov Chain Monte Carlo for a linear Gaussian Multiple Changepoint Mo...

MCMCresidualBreakAnalysis

Break Analysis of Univariate Time Series using Markov Chain Monte Carl...

MCMCSVDreg

Markov Chain Monte Carlo for SVD Regression

MCMCtobit

Markov Chain Monte Carlo for Gaussian Linear Regression with a Censore...

MCmultinomdirichlet

Monte Carlo Simulation from a Multinomial Likelihood with a Dirichlet ...

plotChangepoint

Posterior Density of Regime Change Plot

HMMpanelFE

Markov Chain Monte Carlo for the Hidden Markov Fixed-effects Model

HMMpanelRE

Markov Chain Monte Carlo for the Hidden Markov Random-effects Model

InvWishart

The Inverse Wishart Distribution

MCMCirt1d

Markov Chain Monte Carlo for One Dimensional Item Response Theory Mode...

MCMCirtHier1d

Markov Chain Monte Carlo for Hierarchical One Dimensional Item Respons...

InvGamma

The Inverse Gamma Distribution

BayesFactor

Create an object of class BayesFactor from MCMCpack output

choicevar

Handle Choice-Specific Covariates in Multinomial Choice Models

Dirichlet

The Dirichlet Distribution

dtomogplot

Dynamic Tomography Plot

HDPHMMnegbin

Markov Chain Monte Carlo for sticky HDP-HMM with a Negative Binomial o...

HDPHMMpoisson

Markov Chain Monte Carlo for sticky HDP-HMM with a Poisson outcome dis...

HDPHSMMnegbin

Markov Chain Monte Carlo for HDP-HSMM with a Negative Binomial outcome...

make.breaklist

Vector of break numbers

MCbinomialbeta

Monte Carlo Simulation from a Binomial Likelihood with a Beta Prior

MCMCbinaryChange

Markov Chain Monte Carlo for a Binary Multiple Changepoint Model

MCMCdynamicEI

Markov Chain Monte Carlo for Quinn's Dynamic Ecological Inference Mode...

MCMCdynamicIRT1d

Markov Chain Monte Carlo for Dynamic One Dimensional Item Response The...

MCMCfactanal

Markov Chain Monte Carlo for Normal Theory Factor Analysis Model

MCMChierEI

Markov Chain Monte Carlo for Wakefield's Hierarchial Ecological Infere...

MCMChlogit

Markov Chain Monte Carlo for the Hierarchical Binomial Linear Regressi...

MCMChpoisson

Markov Chain Monte Carlo for the Hierarchical Poisson Linear Regressio...

MCMChregress

Markov Chain Monte Carlo for the Hierarchical Gaussian Linear Regressi...

MCnormalnormal

Monte Carlo Simulation from a Normal Likelihood (with known variance) ...

MCpoissongamma

Monte Carlo Simulation from a Poisson Likelihood with a Gamma Prior

mptable

Calculate the marginal posterior probabilities of predictors being inc...

NoncenHypergeom

The Noncentral Hypergeometric Distribution

plot.qrssvs

Plot output from quantile regression stochastic search variable select...

plotState

Changepoint State Plot

PostProbMod

Calculate Posterior Probability of Model

procrustes

Procrustes Transformation

read.Scythe

Read a Matrix from a File written by Scythe

SSVSquantreg

Stochastic search variable selection for quantile regression

summaryqrssvs

Summarising the results of quantile regression stochastic search varia...

testpanelGroupBreak

A Test for the Group-level Break using a Multivariate Linear Regressio...

testpanelSubjectBreak

A Test for the Subject-level Break using a Unitivariate Linear Regress...

tomogplot

Tomography Plot

topmodels

Shows an ordered list of the most frequently visited models sampled du...

vech

Extract Lower Triangular Elements from a Symmetric Matrix

Wishart

The Wishart Distribution

write.Scythe

Write a Matrix to a File to be Read by Scythe

xpnd

Expand a Vector into a Symmetric Matrix

Contains functions to perform Bayesian inference using posterior simulation for a number of statistical models. Most simulation is done in compiled C++ written in the Scythe Statistical Library Version 1.0.3. All models return 'coda' mcmc objects that can then be summarized using the 'coda' package. Some useful utility functions such as density functions, pseudo-random number generators for statistical distributions, a general purpose Metropolis sampling algorithm, and tools for visualization are provided.