Hi all,
I am new to lmfit and looking to isolate the best model to fit my skewed data. I have isolated the "skewed gaussian" and the "skewed voigt" models as potential optimum models, but they each have advantages over the other at differing points of my skewed distribution: basically, the skewed gaussian model approximates the peak height/1sigma region more accurately, while the skewed voigt is better at capturing the 'heels' of the peak/3 sigma region.
I am thus testing whether combining the models will improve the overall accuracy of the fit, as a composite model. However, when I try to combine them I am given the error message:
raise NameError(msg)
NameError:
Two models have parameters named 'slope'. Use distinct names.
Two models have parameters named 'intercept'. Use distinct names.
Two models have parameters named 'center'. Use distinct names.
Two models have parameters named 'sigma'. Use distinct names.
Two models have parameters named 'amplitude'. Use distinct names.
I thus need to rename the parameters in each model, which is where I'm stuck. Any help would be hugely appreciated!
Many thanks,
Elis