Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiresponse modeling #1509

Open
TinyvanBoekel opened this issue Jun 2, 2023 · 2 comments
Open

multiresponse modeling #1509

TinyvanBoekel opened this issue Jun 2, 2023 · 2 comments
Labels
Milestone

Comments

@TinyvanBoekel
Copy link

Would it be possible to make brms suitable for multiresponse modeling, i.e., to have several measured responses that are supposed to be generated from linked models (in most cases represented by ordinary differential equations, ODEs). These measured responses will be characterized by a covariance matrix, i.e., the responses will in many cases be correlated somehow. Just as a simple example, suppose a chemical reaction of A -> B -> C where all three components are measured and the fate of all three components is represented by different but linked equations (ODEs) that share parameters. The goal is then to estimate these shared parameters (including the unknown experimental covariance matrix). Stan is able to handle this type of modeling but it would be so much easier if it can be done in brms as well.

@paul-buerkner
Copy link
Owner

Thank you for opening this issue! The goal is to get this to work in brms 3.0+

@paul-buerkner paul-buerkner added this to the brms 3.0 milestone Jun 2, 2023
@wds15
Copy link
Contributor

wds15 commented Jun 20, 2023

As I myself want to use brms for PK/PD models (PK: drug concentration over time; PD: effect of concentration over time) I had to look into this. From my basic understanding it is possible to do it with some caveats and a big&dirty trick: The parameters which are shared between the two non-linear models must be declared as missing data. Doing so makes these parameters being modelled as their own response and I can use these parameters as inputs to the PK and the PD model. I am sure missing data bits were not intended in brms for this purpose, but it does seem to work ok. Getting joint models to work more easily would be great to have indeed. If it is worthwhile I will try to come up with a more simple example compared to what I am looking at right now... which is the PK/PD model for Warfarin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants