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.”
Method
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
Faster estimation of Bayesian models in ecology using Hamiltonian Monte Carlo
Monnahan, C. C., Thorson, J. T., & Branch, T. A. (2017) · Methods in Ecology and Evolution · doi:10.1111/2041-210x.12681 · Cited by 273
bridgesampling: An R Package for Estimating Normalizing Constants
Gronau, Q. F., Singmann, H., & Wagenmakers, E.-J. (2020) · Journal of Statistical Software · doi:10.18637/jss.v092.i10 · Cited by 222
Towards Process-based Range Modeling of Many Species
Evans, M. E. K., Merow, C., Record, S., McMahon, S. M., & Enquist, B. J. (2016) · Trends in Ecology & Evolution · doi:10.1016/j.tree.2016.08.005 · Cited by 163
“Recent advances in flexible implementation of hierarchical models [81,82], strategies for writing efficient code [83], and recommendations for scaling up [76] offer hope, but will require further progress to fully realize the vision of process-based range modeling en masse.”
BackgroundRashid, T., Bennett, J. E., Paciorek, C. J., Doyle, Y., Pearson-Stuttard, J., Flaxman, S., Fecht, D., Toledano, M. B., Li, G., Daby, H. I., et al. (2021) · The Lancet Public Health · doi:10.1016/s2468-2667(21)00205-x · Cited by 75
Self-citationSocioeconomic status determines COVID-19 incidence and related mortality in Santiago, Chile
Mena, G., Martinez, P. P., Mahmud, A. S., Marquet, P. A., Buckee, C. O., & Santillana, M. (2021) · doi:10.1101/2021.01.12.21249682 · Cited by 64
MacTavish, R., Bixby, H., Cavanaugh, A., Agyei-Mensah, S., Bawah, A., Owusu, G., Ezzati, M., Arku, R., Robinson, B., Schmidt, A. M., et al. (2023) · World Development · doi:10.1016/j.worlddev.2023.106253 · Cited by 23
Meloncelli, N. J., Barnett, A. G., Cameron, C. M., McIntyre, D., Callaway, L. K., d'Emden, M. C., & de Jersey, S. J. (2023) · Medical Journal of Australia · doi:10.5694/mja2.52129 · Cited by 13
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.