June 25, 2017
Advanced Stan users sometimes find it easier to specify the full likelihood of the model directly rather than using the sampling statements we have shown here.
y ~ normal(mu, sigma);
is equivalent to
target += normal_lpdf(y | mu, sigma);
Examples of when this is handy are beyond the scope of this tutorial.