fit function

Perform dose-effect fitting algorithm