Programming With Models: Writing Statistical Algorithms for General Model Structures With NIMBLE
Open accessThe DOI matches its Crossref record; 38 of the 38 references it cites were found in a registry or an index.
Abstract
We describe NIMBLE, a system for programming statistical algorithms for general model structures within R. NIMBLE is designed to meet three challenges: flexible model specification, a language for programming algorithms that can use different models, and a balance between high-level programmability and execution efficiency. For model specification, NIMBLE extends the BUGS language and creates model objects, which can manipulate variables, calculate log probability values, generate simulations, and query the relationships among variables. For algorithm programming, NIMBLE provides functions that operate with model objects using two stages of evaluation. The first stage allows specialization of a function to a particular model and/or nodes, such as creating a Metropolis-Hastings sampler for a particular block of nodes. The second stage allows repeated execution of computations using the results of the first stage. To achieve efficient second-stage computation, NIMBLE compiles models and functions via C++, using the Eigen library for linear algebra, and provides the user with an interface to compiled objects. The NIMBLE language represents a compilable domain-specific language (DSL) embedded within R. This article provides an overview of the design and rationale for NIMBLE along with illustrative examples including importance sampling, Markov chain Monte Carlo (MCMC) and Monte Carlo expectation maximization (MCEM). Supplementary materials for this article are available online.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
R: A Language for Data Analysis and Graphics
Ihaka, R., & Gentleman, R. (1996) · Journal of Computational and Graphical Statistics · doi:10.1080/10618600.1996.10474713 · Cited by 11,220
Sequential Monte Carlo Methods in Practice
(2001) · Springer eBooks · doi:10.1007/978-1-4757-3437-9 · Cited by 7,366
WinBUGS - A Bayesian modelling framework: Concepts, structure, and extensibility
Lunn, D. J., Thomas, A., Best, N., & Spiegelhalter, D. (2000) · Statistics and Computing · doi:10.1023/a:1008929526011 · Cited by 5,368
Rue, H., Martino, S., & Chopin, N. (2009) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.1467-9868.2008.00700.x · Cited by 5,279
MCMC Methods for Multi-Response Generalized Linear Mixed Models: The MCMCglmmR Package
Hadfield, J. D. (2010) · Journal of Statistical Software · doi:10.18637/jss.v033.i02 · Cited by 4,799
JAGS: A program for analysis of Bayesian graphical models using Gibbs sampling
Plummer, M. (2003) · Cited by 4,720
Handbook of Markov Chain Monte Carlo
Brooks, S., Gelman, A., Jones, G., & Meng, X.-L. (2011) · Chapman & Hall/CRC eBooks · doi:10.1201/b10905 · Cited by 2,993
An Adaptive Metropolis Algorithm
Haario, H., Saksman, E., & Tamminen, J. (2001) · Bernoulli · doi:10.2307/3318737 · Cited by 2,631
MCMC Using Hamiltonian Dynamics
Neal, R. M. (2011) · Handbook of Markov Chain Monte Carlo · doi:10.1201/b10905-6 · Cited by 2,574
Understanding predictive information criteria for Bayesian models
Gelman, A., Hwang, J., & Vehtari, A. (2014) · Statistics and Computing · doi:10.1007/s11222-013-9416-2 · Cited by 2,104 · cited 1×
“…et al., 2007; Lele et al., 2010; de Valpine, 2012), new approximations (e.g., Rue et al., 2009), methods for model selection and assessment (e.g., Hjort et al., 2006; Gelman et al., 2014), combinations of ideas such as sequential Monte Carlo and MCMC (Andrieu et al., 2010), and many others.”
MethodParticle Markov Chain Monte Carlo Methods
Andrieu, C., Doucet, A., & Holenstein, R. (2010) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.1467-9868.2009.00736.x · Cited by 1,971
The BUGS project: evolution, critique and future directions
Lunn, D., Spiegelhalter, D., Thomas, A., & Best, N. (2009) · Statistics in Medicine · doi:10.1002/sim.3680 · Cited by 1,876
Fournier, D. A., Skaug, H. J., Ancheta, J., Ianelli, J., Magnusson, A., Maunder, M. N., Nielsen, A., & Sibert, J. (2012) · Optimization Methods and Software · doi:10.1080/10556788.2011.597854 · Cited by 1,739
Hierarchical Modeling and Analysis for Spatial Data
Banerjee, S., Carlin, B. P., Gelfand, A. E., & Banerjee, S. (2003) · Chapman & Hall/CRC eBooks · doi:10.1201/9780203487808 · Cited by 1,710
A Monte Carlo Implementation of the EM Algorithm and the Poor Man's Data Augmentation Algorithms
Wei, G. C. G., & Tanner, M. A. (1990) · Journal of the American Statistical Association · doi:10.1080/01621459.1990.10474930 · Cited by 1,453
Markov chain Monte Carlo without likelihoods
Marjoram, P., Molitor, J., Plagnol, V., & Tavaré, S. (2003) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.0306899100 · Cited by 1,199 · cited 2×
“…et al., 2014); (vi) “likelihood free” or “plug-and-play” methods such as synthetic likelihood (Wood, 2010), approximate Bayesian computation (ABC; Marjoram et al., 2003), or iterated filtering (Ionides et al., 2006); (vii) parametric bootstrapping of any of the above ideas; or (viii) the same…”
MethodTMB: Automatic Differentiation and Laplace Approximation
Kristensen, K., Nielsen, A., Berg, C. W., Skaug, H., & Bell, B. M. (2016) · Journal of Statistical Software · doi:10.18637/jss.v070.i05 · Cited by 912
PyMC: Bayesian Stochastic Modelling in Python
Patil, A., Huard, D., & Fonnesbeck, C. (2010) · Journal of Statistical Software · doi:10.18637/jss.v035.i04 · Cited by 711
Model Determination using Predictive Distributions with Implementation via Sampling-Based Methods
Gelfand, A. E., Dey, D. K., & Chang, H. (1992) · Bayesian Statistics 4 · doi:10.1093/oso/9780198522669.003.0009 · Cited by 656
The Deviance Information Criterion: 12 Years on
Spiegelhalter, D. J., Best, N. G., Carlin, B. P., & Linde, A. (2014) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/rssb.12062 · Cited by 629
Bayesian computing with INLA: New features
Martins, T. G., Simpson, D., Lindgren, F., & Rue, H. (2013) · Computational Statistics & Data Analysis · doi:10.1016/j.csda.2013.04.014 · Cited by 604
Church: a language for generative models
Goodman, N., Mansinghka, V., Roy, D. M., Bonawitz, K., & Tenenbaum, J. B. (2012) · arXiv · doi:10.48550/arxiv.1206.3255 · Cited by 577
Statistical inference for noisy nonlinear ecological dynamic systems
Wood, S. N. (2010) · Nature · doi:10.1038/nature09319 · Cited by 546
The BUGS Book: A Practical Introduction to Bayesian Analysis
Lunn, D., Jackson, C., Best, N., Thomas, A., & Spiegelhalter, D. (2012) · Chapman & Hall/CRC eBooks · doi:10.1201/b13613 · Cited by 524
Inference for nonlinear dynamical systems
Ionides, E. L., Bretó, C., & King, A. A. (2006) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.0603181103 · Cited by 459
BLOG: Probabilistic Models with Unknown Objects
Milch, B., Marthi, B., Russell, S., Sontag, D., Ong, D. L., & Kolobov, A. (2007) · Introduction to Statistical Relational Learning · doi:10.7551/mitpress/7432.003.0015 · Cited by 390
A survey of Bayesian predictive methods for model assessment, selection and comparison
Vehtari, A., & Ojanen, J. (2012) · Statistics Surveys · doi:10.1214/12-ss102 · Cited by 348
Multi-stage programming with explicit annotations
Taha, W., & Sheard, T. (1997) · Proceedings of the 1997 ACM SIGPLAN symposium on Partial evaluation and semantics-based program manipulation · doi:10.1145/258993.259019 · Cited by 342
Lightweight modular staging: a pragmatic approach to runtime code generation and compiled DSLs
Rompf, T., & Odersky, M. (2010) · Proceedings of the ninth international conference on Generative programming and component engineering · doi:10.1145/1868294.1868314 · Cited by 277
Lele, S. R., Dennis, B., & Lutscher, F. (2007) · Ecology Letters · doi:10.1111/j.1461-0248.2007.01047.x · Cited by 257
Implementations of the Monte Carlo EM Algorithm
Levine, R. A., & Casella, G. (2001) · Journal of Computational and Graphical Statistics · doi:10.1198/106186001317115045 · Cited by 235
Estimability and Likelihood Inference for Generalized Linear Mixed Models Using Data Cloning
Lele, S. R., Nadeem, K., & Schmuland, B. (2010) · Journal of the American Statistical Association · doi:10.1198/jasa.2010.tm09757 · Cited by 176
Posterior predictive model checks for disease mapping models
Stern, H. S., & Cressie, N. (2000) · Statistics in Medicine · doi:10.1002/1097-0258(20000915/30)19:17/18<2377::aid-sim576>3.0.co;2-1 · Cited by 174
Givens, G. H., & Hoeting, J. A. (2012) · doi:10.1002/9781118555552 · Cited by 170
Post-Processing Posterior Predictive p Values
Hjort, N. L., Dahl, F. A., & Steinbakk, G. H. (2006) · Journal of the American Statistical Association · doi:10.1198/016214505000001393 · Cited by 149
MCMC maximum likelihood for latent state models
Jacquier, É., Johannes, M. S., & Polson, N. (2006) · Journal of Econometrics · doi:10.1016/j.jeconom.2005.11.017 · Cited by 101
Statistics for Bioengineering Sciences: With MATLAB and WinBUGS Support
Vidaković, B. (2011) · CERN Document Server (European Organization for Nuclear Research) · doi:10.1007/978-1-4614-0394-4 · Cited by 43
Frequentist analysis of hierarchical models for population dynamics and demographic data
de Valpine, P. (2011) · Journal für Ornithologie · doi:10.1007/s10336-010-0642-5 · Cited by 33
Cited by
Vehtari, A., Gelman, A., Simpson, D., Carpenter, B., & Bürkner, P.-C. (2021) · Bayesian Analysis · doi:10.1214/20-ba1221 · Cited by 1,810
“…al. (2013). packages for MCMC sampling such as Stan (Carpenter et al., 2017), JAGS (Plummer, 2003), WinBUGS (Lunn et al., 2000), OpenBUGS (Lunn et al., 2009), PyMC3 (Salvatier et al., 2016), and NIMBLE (de Valpine et al., 2017), which together are estimated to have hundreds of thousands of users.”
MethodBayesian statistics and modelling
van de Schoot, R., Depaoli, S., King, R., Kramer, B., Märtens, K., Tadesse, M. G., Vannucci, M., Gelman, A., Veen, D., Willemsen, J., et al. (2021) · Nature Reviews Methods Primers · doi:10.1038/s43586-020-00001-2 · Cited by 1,176
Socioeconomic status determines COVID-19 incidence and related mortality in Santiago, Chile
Mena, G. E., Martinez, P. P., Mahmud, A. S., Marquet, P. A., Buckee, C. O., & Santillana, M. (2021) · Science · doi:10.1126/science.abg5298 · Cited by 431
Household cooking fuel estimates at global and country level for 1990 to 2030
Stoner, O., Lewis, J., Martínez, I. L., Gumy, S., Economou, T., & Adair-Rohani, H. (2021) · Nature Communications · doi:10.1038/s41467-021-26036-x · Cited by 295
A guide to state–space modeling of ecological time series
Auger‐Méthé, M., Newman, K., Cole, D., Empacher, F., Gryba, R., King, A. A., Leos‐Barajas, V., Mills Flemming, J., Nielsen, A., Petris, G., et al. (2021) · Ecological Monographs · doi:10.1002/ecm.1470 · Cited by 275
Metadata
- Authors
- de Valpine, P., Turek, D., Paciorek, C. J., Anderson-Bergman, C., Lang, D. T., & Bodik, R.
- Venue
- Journal of Computational and Graphical Statistics
- Publisher
- Informa UK Limited
- Published
- 2017-04-03
- Volume
- 26
- Issue
- 2
- Pages
- 403-413
- ISSN
- 1061-8600 (ISSN-L)
- 1537-2715
- OpenAlex
- W2273597220
- Cited by
- 998
- References
- 38
- FWCI
- 19.36
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.