Examples
NIMBLE provides a rich collection of examples to help you get started with statistical modeling and algorithm development. Examples cover a wide range of topics from basic BUGS model usage to advanced algorithm implementation.
NoteBuilding a model from BUGS code
NoteConverting to NIMBLE
NoteCreating a default MCMC
NoteCustomizing an MCMC
NoteParallelizing NIMBLE
NoteSimulating from a model (quickly!)
NoteUsing linear predictors in a regression model
NoteBuilding a generalized linear mixed model and an MCMC for it
NoteVariable selection using reversible jump MCMC (RJMCMC)
NoteRestarting an MCMC
NotePosterior predictive sampling and other post-MCMC use of samples
NoteEcology examples from the book Applied Hierarchical Modeling in Ecology
NoteWriting a new distribution for use in BUGS code: zero-inflated Poisson
NoteGaussian process models
NoteConditional autoregressive (CAR) models
NoteItem response theory (IRT) models
NoteMaximum likelihood via Monte Carlo Expectation-Maximization (MCEM)
NoteMaximum likelihood (basic example)
NoteStochastic volatility modeling using a custom distribution
NoteBayesian nonparametric density estimation
NoteBayesian nonparametric random effects
NoteBayesian nonparametrics with jointly clustered observations
NoteUsing the Pólya-gamma sampler