This document is an interactive companion to the Regression Models chapter of the Stan User’s Guide.
Here is a simple linear regression model:
Here is an example with multiple predictors using matrix notation: