Hi, I am working on a joint model. Many examples I found are to joint a mixed model and a survival model. I am wondering the feasibility to use Stan to integrate ODEs inside a survival model. Anybody has experience on that? Thank you.

I guess â€śjoint modelâ€ť is a very broad category, I am not sure if thereâ€™s a technical basic definition for it, but Iâ€™d say itâ€™s anything with more than one parameter â€“ maybe a better one would be â€śanything that could otherwise be inferred separately, or can be logically separatedâ€ť.

So in principle, yes, Stan can be used for all sorts of joint models, but we would have so see if thereâ€™s anything in your specific model that is not very standard. From what you describe it seems like you would have some sort of multilevel model where ODEs would be used at a lower level to compute some property for a survival model on the level above. I worked on something where survival models went into a dose-response model, so itâ€™s opposite hierarchy and not ODE-based. If you canâ€™t find in the literature examples of the exact (or similar enough) model you are trying to set up, maybe you have to do it yourself from scratch, and when you get to specific issues this is the place to ask.