let’s say I have to parameters a and b that are both ordered and constrained, e.g.:
- a < b
- a,b ∈ (0.1, 0.5)
What would be the best way to implement these restrictions in stan? I’ve tried adding
<upper> to an
ordered vector containing a and b, but that doesn’t seem to be supported.
- Implementing the corresponding constraint transform myself in the
- Defining a as constrained
realand a helper parameter c \in (0,1), then generating b as transformed parameter via b = 0.1 + c \cdot (0.5-a), but that would rather result in a relative difference.