Your first Stan model: linear regression
R
Bayesian inference
Statistics
brms
Stan
cmdstanr
linear regression
In the previous post we peeked under the hood of brms and saw Stan staring back at us. Now it’s time to write a Stan model ourselves — from scratch, block by block. We’ll…
Mar 24, 2026