Home  >>  Archives  >>  Volume 17 Number 2  >>  st0476

The Stata Journal
Volume 17 Number 2: pp. 330-342



Subscribe to the Stata Journal
cover

Introducing the StataStan interface for fast, complex Bayesian modeling using Stan

Robert L. Grant
BayesCamp
Croydon, UK
[email protected]
Bob Carpenter
Columbia University
New York, NY
Daniel C. Furr
University of California at Berkeley
Berkeley, CA
Andrew Gelman
Columbia University
New York, NY
Abstract.  In this article, we present StataStan, an interface that allows simulation-based Bayesian inference in Stata via calls to Stan, the flexible, open-source Bayesian inference engine. Stan is written in C++, and Stata users can use the commands stan and windowsmonitor to run Stan programs from within Stata. We provide a brief overview of Bayesian algorithms, details of the commands available from Statistical Software Components, considerations for users who are new to Stan, and a simple example. Stan uses a different algorithm than bayesmh, BUGS, JAGS, SAS, and MLwiN. This algorithm provides considerable improvements in efficiency and speed. In a companion article, we give an extended comparison of StataStan and bayesmh in the context of item response theory models.
Terms of use     View this article (PDF)

View all articles by these authors: Robert L. Grant, Bob Carpenter, Daniel C. Furr, Andrew Gelman

View all articles with these keywords: stan, windowsmonitor, StataStan, Bayesian, bayesmh, interface, shell commands, Stan

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS