Sure and I found that the discussion in this post Dealing with data subsetting in Stan - #7 by seantalts has some user-defined function to implement such purpose. Will the future version of Stan add this logical subsetting tool?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Dealing with data subsetting in Stan | 18 | 3951 | August 20, 2019 | |
| Conditional subsetting/slicing of vectors in Stan | 5 | 1943 | February 8, 2018 | |
| Equivalent of R's which? | 5 | 241 | August 8, 2024 | |
| Sub-vectors of random variables with predefined vector of indices | 11 | 870 | April 24, 2019 | |
| Stan equivalent to R's which() | 12 | 3184 | August 21, 2021 |