Joint Model fitting

I want to fit a JM in rstanarm. But my longitudinal data distribution is not a default one. I want to include the distribution without changing other components of the stan_jm( ). How should I proceed?
Any suggestion would be great favor.


Hi, I am not sure this would be totally easy, but you should be able to fork rstanarm and add the distribution in glm_lp (defined here):
You would also need to modify append_mvmer_famlink in and possibly other places.

Unfortunately, it is hard to extract a simple Stan code from rstanarm so if modifying rstanarm is out of question you would need to reimplement the model from scratch (or try to find someone who has implemented it and start with their implementation).

Hope that helps.