# Nonparametric functions for time-varying parameters in ODE models?

**URL:** <https://discourse.julialang.org/t/nonparametric-functions-for-time-varying-parameters-in-ode-models/78137>\
**Category:** Modelling & Simulations\
**Tags:** diffeq, basis\
**Created:** [March 19, 2022, 5:43pm UTC](https://discourse.julialang.org/t/nonparametric-functions-for-time-varying-parameters-in-ode-models/78137 "2022-03-19T17:43:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdwfrost](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdwfrost/32/2831_2.png) [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Post date:** [March 19, 2022, 5:43pm UTC](https://discourse.julialang.org/t/nonparametric-functions-for-time-varying-parameters-in-ode-models/78137/1 "2022-03-19T17:43:49Z")

</div>

Dear All,

I’m interested in having an ODE model where the parameters change over time specified by some nonparametric function e.g. splines, or at least some sort of basis function over time, etc. so I can get a flexible fit to data. Are there any examples you can point me to, or recommendations for what Julia packages play nicely with SciML in terms of autodiff etc.?

Best  
Simon

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [March 20, 2022, 11:33am UTC](https://discourse.julialang.org/t/nonparametric-functions-for-time-varying-parameters-in-ode-models/78137/2 "2022-03-20T11:33:47Z")

</div>

> [@sdwfrost](#):
>
> I’m interested in having an ODE model where the parameters change over time specified by some nonparametric function e.g. splines, or at least some sort of basis function over time, etc. so I can get a flexible fit to data. Are there any examples you can point me to, or recommendations for what Julia packages play nicely with SciML in terms of autodiff etc.?

We usually use DataInterpolations.jl for this, though Interpolations.jl will work for other cases.
