Adaptive Markov chain Monte Carlo sampling and estimation in Mata
Matthew Baker
No 3, Working Papers from City University of New York Graduate Center, Ph.D. Program in Economics
Abstract:
I describe algorithms for drawing from distributions using adaptive Markov chain Monte Carlo (MCMC) methods, introduce a Mata function for performing adaptive MCMC, amcmc(), and a suite of functions amcmc *() allowing an alternative implementation of adaptive MCMC. amcmc() and amcmc *() may be used in conjunction with models set up to work with Mata’s [M-5] moptimize( ) or [M-5] optimize( ), or with stand-alone functions. To show how the routines might be used in estimation problems, I give two examples of what Chernozukov and Hong (2003) refer to as Quasi-Bayesian or Laplace-Type estimators - simulation-based estimators employing MCMC sampling. In the first example I illustrate basic ideas and show how a simple linear model can be estimated by simulation. In the next example, I describe simulation-based estimation of a censored quantile regression model following Powell (1986); the discussion describes the workings of the Stata command mcmccqreg. I also present an example of how the routines can be used to draw from distributions without a normalizing constant, and in Bayesian estimation of a mixed logit model. This discussion introduces the Stata command bayesmlogit.
Keywords: Stata; Mata; Markov chain Monte Carlo; drawing from distributions; mixed logit Bayesian estimation; bayesmlogit; mcmccqreg (search for similar items in EconPapers)
JEL-codes: C10 C11 C13 C15 C25 C60 (search for similar items in EconPapers)
Pages: 38
Date: 2014-07-18
New Economics Papers: this item is included in nep-dcm and nep-ore
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (20)
Downloads: (external link)
http://wfs.gc.cuny.edu/Economics/RePEc/cgc/wpaper/CUNYGC-WP003.pdf First version, July 2014 (application/pdf)
Our link check indicates that this URL is bad, the error code is: 500 Can't connect to wfs.gc.cuny.edu:80 (No such host is known. )
Related works:
Journal Article: Adaptive Markov chain Monte Carlo sampling and estimation in Mata (2014) 
Working Paper: Adaptive Markov chain Monte Carlo sampling and estimation in Mata (2013) 
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:cgc:wpaper:003
Access Statistics for this paper
More papers in Working Papers from City University of New York Graduate Center, Ph.D. Program in Economics Contact information at EDIRC.
Bibliographic data for series maintained by David A. Jaeger ().