Sampling from a t distribution is harder than I thought. I wrote some code that implements a relatively new method by Shaw, Luu, and Brickman:
https://github.com/szego/truncated-student-t-rng

#stats #mcmcstan #mcmc

GitHub - szego/truncated-student-t-rng

Contribute to szego/truncated-student-t-rng development by creating an account on GitHub.

GitHub