This R package accompanies Richard McElreath’s Statistical Rethinking (2nd edition), offering utilities to fit and compare Bayesian models using both MAP estimation (quap) and Hamiltonian Monte Carlo via RStan (ulam). It supports specifying models via explicit distributional assumptions, providing flexibility for advanced statistical workflows.

Features

  • Tools for MAP and HMC Bayesian inference (via quap and ulam)
  • Requires explicit specification of model distributions (more flexible than formula-based syntax)
  • Utilities for diagnostics, posterior analysis, and model comparison
  • Integrates with RStan for sampling-based inference
  • Supports workflows in Jupyter or RMarkdown for teaching and reproducibility
  • Regularly updated to align with editions of the textbook

Project Samples

Project Activity

See All Activity >

Categories

Statistics

License

MIT License

Follow rethinking

rethinking Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of rethinking!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

R

Related Categories

R Statistics Software

Registered

2025-07-29