Oh, I forgot to add that Yuling has been working on this. See this Discourse topic on soft contraints. I still haven’t digested it all yet, so I’m afraid I can’t summarize.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Inequality constraints on linear combinations of parameters | 21 | 866 | March 23, 2025 | |
| New Stan data type: zero_sum_vector | 22 | 4459 | April 26, 2022 | |
| Penalizing parameter to enforce a sum to 0 constraint? | 13 | 885 | May 9, 2024 | |
| Sum to zero constraints and multi-level models - best practise/example code | 14 | 1381 | July 16, 2025 | |
| Does the soft-constraint converge to rigid-constraint? | 5 | 1925 | October 22, 2018 |