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.
Building a model from BUGS code
Converting to NIMBLE
Creating a default MCMC
Customizing an MCMC
Parallelizing NIMBLE
Simulating from a model (quickly!)
Using linear predictors in a regression model
Building a generalized linear mixed model and an MCMC for it
Variable selection using reversible jump MCMC (RJMCMC)
Restarting an MCMC
Posterior predictive sampling and other post-MCMC use of samples
Ecology examples from the book Applied Hierarchical Modeling in Ecology
Writing a new distribution for use in BUGS code: zero-inflated Poisson
Gaussian process models
Conditional autoregressive (CAR) models
Item response theory (IRT) models
Maximum likelihood via Monte Carlo Expectation-Maximization (MCEM)
Maximum likelihood (basic example)
Stochastic volatility modeling using a custom distribution
Bayesian nonparametric density estimation
Bayesian nonparametric random effects
Bayesian nonparametrics with jointly clustered observations