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 | 460 | March 7, 2023 | |
| Alternative to wiener_rng in Stan | 25 | 3517 | December 31, 2024 | |
| Lambert transformation in user defined function to generate random numbers | 1 | 402 | January 26, 2023 | |
| Generating random numbers | 10 | 1304 | February 12, 2022 | |
| RNG for non-standard discrete distribution? | 4 | 468 | October 4, 2020 |