It’s possible with if statements and for loops to accidentally write non-differentiable stuff. It can be difficult to debug so you just gotta watch out :P (and void branching on things that are functions of parameters)
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Fitting a known piecewise linear function with unknown offset | 21 | 2392 | November 23, 2020 | |
| Speeding up the integrate_1d in RStan | 14 | 1144 | January 8, 2022 | |
| A matrix of parameters in Stan Integral | 41 | 1794 | November 25, 2019 | |
| Define densities with no direct analytical expression in STAN | 5 | 484 | May 31, 2019 | |
| 1D integrator Stan model very slow | 3 | 740 | September 9, 2022 |