The only problem with circular distributions is that their
manifold doesn't map continuously to R^n. So I might stay
away from that in a simple example.
There's a related example on making a uniform distribution on the
circle I did in the shapes BUGS example in Vol3 (if I remember right
here).
I'd start with univariate then go onto something multivariate.
Transforms to and from the unit interval are tightly related to
CDFs, but I'm not sure that makes it easier or harder for novices.
Most of our multivariates have diagonal or triangular Jacobians,
though. Then you can go onto something needing a full Jacobian calc.
I couldn't quite follow the function whose Jacobian you give.
Is it (x,y) -> (r,theta) where theta is the angle? I always
find it much easier to understand these things when I have
two complete models, not fragments and everything's fully defined.
It'd be a good idea to assign (x^2 + y^2) to a local variable
and reuse it.
- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> To post to this group, send email to
stan-...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.