Based on this old thread it seems like it should be possible to implement the wiener_rng function using uniform_rng in pure-Stan. It will likely not be particularly fast, due to the use of a kind of rejection sampling
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Unable to recover mixture between Wiener-diffusion and uniform distribution | 14 | 3244 | February 17, 2021 | |
| Sampling works in rstan but not cmdstan with a wiener mixture model | 8 | 1048 | February 18, 2021 | |
| Random walk in RStan | 11 | 1457 | June 12, 2024 | |
| Using the wiener_lpdf() function in the cmdstanr package to implement a diffusion model, the construction of a Markov chain was unsuccessful | 28 | 1128 | January 29, 2026 | |
| Custom likelihood function based on Wiener first passage time density accounting for NoGo responses | 6 | 1082 | April 22, 2021 |