Stan examples in Harezlak, Ruppert and Wand (2018) Semiparametric Regression with R
Statistical Modeling, Causal Inference, and Social Science,
I saw earlier drafts of this when it was in preparation and they were great. Jarek Harezlak, David Ruppert and Matt P. Wand.