Set different ranges for elements within a vector

Hi all,

I was wondering if is possible to specify different ranges for elements within a vector? For example, I have a vector of length 3. I know that the first value must range from [0,3], the second value must be between [-2,2], and the third value must be [-3,0]. Is it possible to specify different ranges for each elements while still keeping them in a vector (instead of treating them as three real values)?

Best,
Bo

Yep, this is possible! See 24.4 Vectors with varying bounds | Stan User’s Guide

1 Like

Amazing!! Thank you so much!