Using design matrices in stan (based on brms code)

Oh, and see also my post showing how to code a model that has both centered and non-centered parameterizations, with selection of which to run done at runtime via data.

2 Likes