Just to complement, rejection sampling can be implemented in pure Stan, e.g. Sampling from truncated lognormal - #2 by bbbales2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to draw samples from a user-defined distribution without writing _rng function | 2 | 486 | March 7, 2023 | |
| Alternative to wiener_rng in Stan | 25 | 3676 | December 31, 2024 | |
| Lambert transformation in user defined function to generate random numbers | 1 | 419 | January 26, 2023 | |
| Generating random numbers | 10 | 1366 | February 12, 2022 | |
| RNG for non-standard discrete distribution? | 4 | 494 | October 4, 2020 |