Gamma(.., ..)^2 -> generalized_gamma(?, ?, ?)

I don’t know who was resisting. If it’s a mainstream distribution with a Wikipedia page and lots of publications, there’s no harm in including it even if it’s just a matter of adding error testing to the automatically generated Stan code. The bottleneck now is testing.

Ok, that makes sense.

Two versions were discussed in this thread. Which one do you recommend? S1 or S2 (Lawless)?

Pretty sure 1S worked better. If you’re willing to read some code it’s all in here :

Those Stan implementations are tested against flexsurv (in the linked repo) although I haven’t made it any easier to build…

1 Like