Skip to content
Advertisement

Tag: lmfit

How to add x offset to LMFIT models

i am trying to use LMFIT to fit a power law model of the form y ~ a (x-x0)^b + d. I used the built in models which exclude the parameter x0: DATA Data Plot: This brings up an error because my data starts at about x = 57000. I was initially offsetting my x-axis by x-57923.24 for all x

Advertisement