I have been tinkering with some external C++ to get a similar thing working for within-model bootstrapping, so that the (continuous) weights for the observations are generated in each draw. Not for any particular use case, but more along the lines of “can it be done”. Here is how I approached it:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Implementing model cuts in Stan | 21 | 1554 | December 8, 2020 | |
| Use the output of a user-defined _rng function into the Model block | 2 | 127 | September 20, 2024 | |
| Cross-conditional dependence in random walk models | 1 | 209 | May 1, 2024 | |
| How to pass parameter estimates from one model to another at every MCMC iteration? | 12 | 2035 | February 6, 2018 | |
| Use parameter output in the first model as an input in the next stan model | 13 | 1903 | May 18, 2021 |