# Find parameters for an equation that depends on two lists

**URL:** <https://community.wolfram.com/t/find-parameters-for-an-equation-that-depends-on-two-lists/18147>\
**Category:** Questions\
**Tags:** modeling\
**Created:** [May 23, 2021, 5:49pm UTC](https://community.wolfram.com/t/find-parameters-for-an-equation-that-depends-on-two-lists/18147 "2021-05-23T17:49:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gh221b](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gh221b/32/12404_2.png) [@gh221b](https://community.wolfram.com/u/gh221b)\
**Post date:** [May 23, 2021, 5:49pm UTC](https://community.wolfram.com/t/find-parameters-for-an-equation-that-depends-on-two-lists/18147/1 "2021-05-23T17:49:57Z")

</div>

I need to find the parameters a,b,d,g,h,i that best fit the “q” function

q = (a + b_t + d_E^(g_t))_(1 - x + h + i\*t)

but that function depends on the values of “x” and “t” , I have a list of pairs. this is the data I used

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/8d64581c-7df9-4f3b-9977-159d9451eabc)

:

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [May 23, 2021, 11:11pm UTC](https://community.wolfram.com/t/find-parameters-for-an-equation-that-depends-on-two-lists/18147/2 "2021-05-23T23:11:44Z")

</div>

Seems it doesn’t fit really

```
sol = NonlinearModelFit[
  ​​datosw, (a + b t + d E^(g t)) (1 - x + h + i*t) ,
  {a, b, d, g, x, h, i}, t]

Plot[(sol // Normal), {t, 0, 60}, Epilog -> Point /@ ​​datosw, PlotRange -> {0, .08}]

```
