Cool. I like that idea.
Just ordering obviously isn't enough for the uniform distribution
on an ordered vector to be proper.
What does happen for reasons I still don't fully understand is
that
ordered[K] cutpoints;
cutpoints ~ normal(0, 5);
provides the same distribution for cutpoints as
vector[K] cutpoints_raw;
cutpoints_raw ~ normal(0, 5);
cutpoints <- sort(cutpoints_raw);
You can put a prior directly on the gaps with
vector[1] cutpoint0;
vector<lower=0>[K - 1] cutpoint_gaps;
cutpoint_gaps ~ normal(0, 2);
ordered[K] cutpoints;
cutpoints <- append_col(cutpoint, cutpoint + cutpoint_gaps);
I'm not sure how to constraint the lowest cut point, cutpoint0.
- Bob
> > To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> --
> 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.