Sampling weights in Stan

See discussion and references here.