Home  >>  Archives  >>  Volume 17 Number 2  >>  st0477

The Stata Journal
Volume 17 Number 2: pp. 343-357



Subscribe to the Stata Journal
cover

Fitting Bayesian item response models in Stata and Stan

Robert L. Grant
BayesCamp
Croydon, UK
[email protected]
Daniel C. Furr
University of California at Berkeley
Berkeley, CA
Bob Carpenter
Columbia University
New York, NY
Andrew Gelman
Columbia University
New York, NY
Abstract.  Stata users have access to two easy-to-use implementations of Bayesian inference: Stata’s native bayesmh command and StataStan, which calls the general Bayesian engine, Stan. We compare these implementations on two important models for education research: the Rasch model and the hierarchical Rasch model. StataStan fits a more general range of models than can be fit by bayesmh and uses a superior sampling algorithm, that is, Hamiltonian Monte Carlo using the no-U-turn sampler. Furthermore, StataStan can run in parallel on multiple CPU cores, regardless of the flavor of Stata. Given these advantages and given that Stan is open source and can be run directly from Stata do-files, we recommend that Stata users interested in Bayesian methods consider using StataStan.
Terms of use     View this article (PDF)

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

View all articles with these keywords: stan, windowsmonitor, StataStan, bayesmh, Bayesian

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS