jtimonen / odemodeling

R-package for building and fitting Bayesian ODE models in Stan
BSD 3-Clause "New" or "Revised" License
25 stars 1 forks source link

How to include forcing data for ODE models? #2

Open palderman opened 2 years ago

palderman commented 2 years ago

First, this package is a major contribution towards using ODE models with Stan. Thank you!

My usage of ODE models usually involves equations that are forced by a vector of weather variables like solar radiation or air temperature measured at each time step. I don't see any way to pass time-step-specific data into a solver with the current version of this package. Am I missing that somewhere?

I would be very interested in collaborating to add this capability. Do you have any interest in working together on that? Would you at least be able to point me in the right direction to get started?

jtimonen commented 2 years ago

Hi, can you like write an example ODE that has this forcing vector? If the forcing function was a continuous function of time then you would write that inside the ODE right-hand side function but if it is a vector that is available only at a certain set of time-points then I am not sure how well defined this thing is