There are various ways to parameterize distributions; for instance,
the normal can use scale (sigma), variance (sigma^2), or precision (1 / sigma^2).
negative_binomial has many parameterizations as does the gamma; check
out the Wikipedia articles.
Using _lpdf functions with sampling notation won't work until Stan 2.12,
which is due out any day now (it's already been tagged and is just
winding through the interfaces). Until then, you'd have to use the old
_log syntax (see the deprecated functions section of the manual) if
you want to use ~.
- Bob