First you should check out the optimizations in the Multivariate Priors for Hierarchical Models section of the Stan User’s guide, specifically the optimizations that are presented later in the chapter. Then you should take a look at the reduced-computation-through-recognizing-redundancy trick I present here.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Improving speed in hierarchical VAR modelling | 0 | 414 | August 22, 2019 | |
| Slow Stan Code for Hierarchical Multivariate Model | 8 | 1406 | July 24, 2018 | |
| Data Structure for 2-level multilevel VAR | 2 | 559 | July 7, 2020 | |
| Hierarchical Multivariate Normal model | 6 | 2281 | June 12, 2019 | |
| Sum_reduce with multilevel VAR-model | 38 | 2320 | May 26, 2020 |